standalone?

checks if current script runs from the command-line


Parameters

standalone? 

Returns

  • :logical

Examples

copy
doSomething: function [x][ print ["I'm doing something with" x] ] if standalone? [ print "It's running from command line and not included." print "Nothing to do!" ]

Related