Command Reference : Programming Language Reference
  
 
@hasoption
Syntax: @hasoption("option")
Syntax: @hasoption(string)
Return: 0 or 1
returns 1 or 0 depending on whether the specified option is or is not in the program options provided in the exec or run command.
Cross-references
See exec and run.