Page 1 of 1

Logical Operations for /if

Posted: Fri Dec 13, 2002 9:39 pm
by ashplayah
Added logical && and || for the /if command

syntax is:
/if <comparison> <command>
where <comparison> is in the form:
[n] <a>==<b> or
(<comparison> && <comparison>)

Note: you need to have the parens and spaces correct...

I've posted the delta to a MSN's free webhosting service (you need to sign in with a passport):
http://groups.msn.com/AshPlayah/Documents/MQDelta2.zip

Sample Code:

Code: Select all

/if ($char(hp,pct)<60 && $char(mana,pct)>80) /call HealSelf
Ashplayah

Posted: Mon Dec 30, 2002 1:46 am
by rizwank
can you update this cpp to work with IRC latest 12-01 with the addition of
BOOL IfCompare(PCHAR szCond, BOOL CompareNumeric)
{

et al? I was trying to merge it today and I couldnt....

Re: Logical Operations for /if

Posted: Sun Jan 11, 2026 8:17 pm
by xyilla

Re: Logical Operations for /if

Posted: Sun Jan 11, 2026 8:18 pm
by xyilla

Re: Logical Operations for /if

Posted: Sun Jan 11, 2026 8:19 pm
by xyilla

Re: Logical Operations for /if

Posted: Sun Jan 11, 2026 8:22 pm
by xyilla