I am looking for a solution to abort a script if a variable is empty.
Code: Select all
:if ([:len $net1] = 0) do={
exit
}
...rest of the script should not be executed if $net1 empty
Thank you
Stril
:if ([:len $net1] = 0) do={
exit
}
...rest of the script should not be executed if $net1 empty
:if ([:len $net1] > 0) do={
do what I want
}
try reverse conditionHi!
I am looking for a solution to abort a script if a variable is empty.
This does not work. Can you give me a hint on how to solve this?Code: Select all:if ([:len $net1] = 0) do={ exit } ...rest of the script should not be executed if $net1 empty
Thank you
Stril
:if ([:len $net1]!=0) do={
execute
}