__LINE__
put "I am on line" && __LINE__
__LINE__
is a special keyword that is replaced with the line number of the line it's on when a script is parsed.
If __LINE__
is used inside a string passed to do
or value
, it will be replaced with the line number of the line it's on inside the string, not inside the current script file. If you want the latter, put __LINE__
outside the string.
__LINE__
is not part of the XION Scripting Language Standard and is not portable. It is not available in OpenXION 1.0 or 1.1.