Hi,
i am trying to find out, how i can manage the following.
I want to allow passing serveral paramaters/variables to the script by commandline. If none of these variables were passed, the script should open with a gui. Otherwise it should run without.
The problem is, if a variable is not passed to the script, i am not able to check this. I thought, i just could use an if-statement,
e.g. IF>VAR1=""
but because the var does not exists at this time, this does not work.
Any idea? Maybe a dumb question, but i have no clue.
Regards,
Matthias
how to check, if var passed by commandline to MSched exists
Moderators: Dorian (MJT support), JRL
Check out the Assigned> function.
Code: Select all
//Let>variable=1
assigned>variable,result
If>result=TRUE
MessageModal>variable = %variable%
Else
MessageModal>variable has no value
EndIf