Conditional Statements and Version Numbers

Scott Kane scott at cdroo.com
Mon Apr 23 12:15:38 EDT 2007


G'day,

In some other programming languages it's possible to use conditional defines 
to conditionally run parts of your code.  This is particuarly useful when 
done in combination with version or build numbers.  I can't seem to find 
similar methods in Rev.  That is to say I can't find conditional defines or 
the ability to get a stand alones version or build number (though I can 
certainly find out the version or build of the Rev engine used to built it).

For example

{$ ifDef myDefine}
Do some code
{$End If}

The $ being a compiler directive.  Is either of these possible in Rev?

Scott 




More information about the use-livecode mailing list