execstr
Execute Nelson code in strings.
Syntax
execstr(str)
execstr(str, 'nocatch')
bSuccess = execstr(str, 'errcatch')
Input argument
str - a string: Nelson instruction to execute
Output argument
bSuccess - a logical: true or false if command fails
Description
execstr executes Nelson instructions given in a string.
execstr(str, 'nocatch') is equivalent to execstr(str)
execstr can be used as alternative to try ... catch ... end block.
Examples
This example will fail and returns an error message.
This example will fail and returns an error message.
This example will not fail and return false.
See also
run.
History
Author
Allan CORNET
Last updated