Page 1 of 1
${If[condition,true,false]} not working properly, True 100%
Posted: Tue Dec 20, 2016 12:05 pm
by n00bhaxor
I have some aliases with ${If} statements inline and they always default to true now. This has been since the latest patch or maybe the last patch, but I know it was working before that.
I will break these out into a sub-routine and get rid of the single line until this is fixed.
Re: ${If[condition,true,false]} not working properly, True 1
Posted: Tue Dec 20, 2016 12:19 pm
by SwiftyMUSE
Examples?
Re: ${If[condition,true,false]} not working properly, True 1
Posted: Tue Dec 20, 2016 4:30 pm
by n00bhaxor
Sorry here ya go:
Code: Select all
/squelch /alias /usefellowship /multiline ; /varset changetoini 1 ; ${If[${UseFellowship}==1,/varset UseFellowship 0,/varset UseFellowship 1]} ; /echo Toggling Fellowship Usage to ${If[${UseFellowship}==0,OFF,ON]}
/squelch /alias /holdcamp /multiline ; /varset changetoini 1 ; ${If[${AlwaysHoldCamp}==1,/varset AlwaysHoldCamp 0,/varset AlwaysHoldCamp 1]} ; /echo Toggling Always Hold Camp to ${If[${AlwaysHoldCamp}==0,OFF,ON]}
/squelch /alias /instantrelease /multiline ; /varset changetoini 1 ; ${If[${InstantRelease}==1,/varset InstantRelease 0,/varset InstantRelease 1]} ; /echo Toggling Instant Release when dead to ${If[${InstantRelease}==0,OFF,ON]}
/squelch /alias /qmgroup /multiline ; /varset changetoini 1 ; ${If[${QMGroup}==1,/varset QMGroup 0,/varset QMGroup 1]} ; /echo Toggling Quiet Miracle on Group to ${If[${QMGroup}==0,OFF,ON]}
Re: ${If[condition,true,false]} not working properly, True 1
Posted: Tue Dec 20, 2016 4:45 pm
by demonstar55
you need to add /noparse in front of /alias I believe.
Re: ${If[condition,true,false]} not working properly, True 1
Posted: Fri Dec 30, 2016 10:08 am
by n00bhaxor
Demonstar you were spot on with this fix. That was the issue.
Without /noparse it was using the value of ${variable} in the alias when created.