#If

Prev Next Home Home Table Of Contents Index

#If (Define)

If the name is defined, all code between #If and #Else is compiled. Otherwise, all code between #Else and #Endif is compiled. If there is no #Else, then all code between #If and #Endif is compiled if the name is defined. Otherwise, no code is compiled.

#If can be used with multiple names.


Example:
#If Marx Tyme #If Marx or Tyme #If Marx and Tyme #If Marx and not Tyme

If more that one name is used, the result is true if either name is defined. In other words, OR is assumed. MarxMenu supports AND, OR and NOT in #If statements.

See Also: #Define

Category: Conditional

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home