CONDITION( )
Returns information about a currently caught condition.
CONDITION( [option] )
The following options are available:
- [C] – (Condition name)
- Returns the name about the currently caught condition.
- [I] - (Instruction)
- Either returns 'CALL' or 'SIGNAL', the keyword of the processed instruction when the current condition was caught. This is also the default if option is not specified.
- [D] - (Description)
- Returns a descriptive string related to the currently caught condition.
Examples
CONDITION() 'SIGNAL'
CONDITION('C') 'SYNTAX'
CONDITION('I') 'SIGNAL'
CONDITION('D') 'Expression 'temp' is not a number'