mIRC Home    About    Download    Register    News    Help

Topic Options
#264137 - 02/11/18 11:22 AM /inc bug related to if
FroggieDaFrog Online
Hoopy frood

Registered: 16/04/10
Posts: 910
Loc: USA
This probably falls under the "use brackets" rule put forth in other bug reports where conditionals are involved, but figured I'd submit this so its documented.

In instances where an if statement has multiple conditions, a following /inc command will result in an error if brackets are not used:

; * /inc: insufficient parameters
if (a == a && b == b) inc %example

Edited by FroggieDaFrog (02/11/18 11:22 AM)
I am SReject
My Stuff

#264139 - 02/11/18 02:31 PM Re: /inc bug related to if [Re: FroggieDaFrog]
Raccoon Offline
Hoopy frood

Registered: 18/02/03
Posts: 2600
I would also recommend against that particular form of parenthesis as it is also somewhat ambiguous and difficult to parse. mIRC prefers:

if (a == a) && (b == b) inc %example  or optionally
if ((a == a) && (b == b)) inc %example
Well. At least I won lunch.
Good philosophy, see good in bad, I like!

#264140 - 02/11/18 03:00 PM Re: /inc bug related to if [Re: FroggieDaFrog]
Khaled Offline

Planetary brain

Registered: 04/12/02
Posts: 4449
Loc: London, UK
Yes, this is the same issue as discussed in your previous thread.