Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
Exit the script based on condition on reload.
For Example:
if 'Id' is equal to 37 then the script should continue execution
else the script should stop its execution at that point and 'EXIT Script' should be activated or executed.
Kindly awaiting for your response.
Thanks & Regards,
Dinesh M
What is Id here? Is this a field or a variable?
if (id=37) then
EXECUTE
else
LET vStop = Now();
EXIT Script;
End If
just try like this it may works
Can you share full script? I mean before IF condition what you have done
Try this way
LET X = 37;
LET vVar = 37;
if $(X) = $(vVar) then
LOAD * Inline [
Col
a
b
c
d ];
else
EXIT Script;
end if
Regards
Anand
Hi Sunny,
'Id' is a field for which the values are given using input function.
Regards,
Dinesh M
Can it always have one value assigned to it? Can you may be share a sample so that we can see your setup?
Kindly find the below script that I have and there is no binary load.
LOAD
Input('Enter your ID','Input' ) as ID,
Input('Enter the Name','input' ) as Name
AutoGenerate(1);
//----------------
// condition
//----------------
//-------------------------
// remaining script
//--------------------------
if the condition is true the 'remaining script' has to execute else script has to exit.
Thanks & Regards,
Dinesh M