mIRC Homepage
Posted By: FroggieDaFrog /inc bug related to if - 02/11/18 11:22 AM
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:

Code:
; * /inc: insufficient parameters
if (a == a && b == b) inc %example
Posted By: Raccoon Re: /inc bug related to if - 02/11/18 02:31 PM
I would also recommend against that particular form of parenthesis as it is also somewhat ambiguous and difficult to parse. mIRC prefers:

Code:
if (a == a) && (b == b) inc %example  or optionally
if ((a == a) && (b == b)) inc %example
Posted By: Khaled Re: /inc bug related to if - 02/11/18 03:00 PM
Yes, this is the same issue as discussed in your previous thread.
© mIRC Discussion Forums