|
BobMc Newbie
Joined: 24 Oct 2006 Posts: 3
|
Posted: Fri Apr 10, 2009 6:14 pm
class properties |
Hopefully this is a really easy one, but is there a way to determine if a class (or any other object for that matter) is enabled or not ?
I dont want to change its status in any way, just to find out what its currently set to
Cheers
Bob |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri Apr 10, 2009 6:35 pm |
Easy way. :P
#SAY %class("Classname")
It'll return 1 if enabled, 0 if disabled.
For triggers, it's %trigger("TriggerID")
Charneus |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Fri Apr 10, 2009 7:58 pm |
I thought that the two functions were interchangeable
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Apr 11, 2009 1:51 am |
They probably are, but I tend to use them for the appropriate setting. ;)
Charneus |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Apr 11, 2009 4:48 pm |
They both will search for a other setting types. The difference is that %class looks at classes first, and %trigger looks for triggers first. Using the correct one for what you intend will be slightly faster.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
BobMc Newbie
Joined: 24 Oct 2006 Posts: 3
|
Posted: Sun Apr 12, 2009 12:32 am |
Gee thanks guys. Not sure how I missed that one
|
|
|
|
|
|