Name:
#if
Syntax:

#IF label = value

(code)

#ENDIF


#IF label > value

(code)

#ELSEIF label  value

(code)

#ELSE

(code)

#ENDIF

Description:

Conditionally compile code depending on whether a defined label has a particular value

Applies To:
All
See Also:
Related Create:
    Share:
    Print:

    #if example

    Example of how to use #define and #if

    Code Example:
    #define edition = 8
    
    #if edition > 6
      let b1 = 8
    #else
      let b1 = 4
    #endif
    
    Copy Code Submit an Example

    Submit Your Own Code!

    You must be logged in to submit code examples. Login now.

    Comments

    • Login to leave a comment.