|
shazara Beginner
Joined: 17 Feb 2003 Posts: 16 Location: USA
|
Posted: Mon Jun 28, 2004 10:01 pm
Commands based on whether a class is on or off. |
I need a way to use an #IF command that operates on whether or not a class/subclass is enabled or disabled. Such as #IF (classisenabled) {do this} {else do this}. Is this possible, and if so, what expression would I use to check if the class is on/off?
Also trying to find a way to implement that with toggle buttons. If a class is enabled, the button is on, if disabled, the button is off. |
|
|
|
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
Posted: Mon Jun 28, 2004 10:29 pm |
#IF (%class(YourClassName)) {#ECHO YourClassName is enabled} {#ECHO YourClassName is disabled}
The command is %class(ClassName)
I believe it returns 1 if true, 0 if false and -1 if non-existant. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|