bool

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

SirCheese
orc pawn
orc pawn
Posts: 13
Joined: Tue Sep 28, 2004 8:02 pm
Location: Washington DC

bool

Post by SirCheese » Mon Oct 25, 2004 4:58 pm

So today I took some advice I have seen posted at least 1 time on these boards. I read the Manual!!! Learned a ton. Was great advice.

However I still dont understand what the bool command is for. Can anybody give me some help on this?

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Mon Oct 25, 2004 5:41 pm

There's no /bool command. Are you talking about the TLO ${Bool[]} ? In that case it simply returns an object of the type bool which is a single byte value (true or false).

Not something you use every day but could have it's uses for example if you have an ini file and you want to define a toggle with a written true or false instead of a cryptic 1 or 0. You could then do something like /if (${Bool[${Ini[something]}]}) ...