I am trying to figure out how OMIT
works - better said I want to eventually create a template in which one can define a value - but I want to have a fallback value, or better said a default value for the equate if it’s not set - but I can’t get the following piece of code to work - it throws a Unknown Identifier
unless I remove the OMIT
(comment it out is enough`
OMIT('MyEquateValue', MyEquateValue <> 0)
MyEquateValue EQUATE('TEST')
MyEquate EQUATE(MyEquateValue)
The above was inside my .inc file which I include - but it does act the same inside the Global Data
section - my program is currently Clarion 8 (Legacy)
The thing I don’t understand is that it should only be omitted when it has a value other than 0
- it’s 0
by default if not defined according to the documentation - but clearly it does have a value, otherwise it wouldn’t be omitted right?