Other Keywords

__LINE__

Supported By

Syntax

__LINE__

Example

put "I am on line" && __LINE__

Description

__LINE__ is a special keyword that is replaced with the line number of the line it's on when a script is parsed.

Note

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.

Compatibility

__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.