Hello people!! 
I 'am thinking if there is another way to set a boolean parameter and not use eval on it.
I have this parameter, to that function:
I know, it's only one eval, but maybe it will have others. So I was wondering if it has a way to not use eval.
Also, I have seen some plugins doing that with boolean parameters, using a string and then eval.
What I'm missing?
I 'am thinking if there is another way to set a boolean parameter and not use eval on it.
I have this parameter, to that function:
Code:
@param Cancel Two Fingers
@type boolean
@on Yes
@off No
@desc
@default true
Eli.Param.Utilities = {
CancelTwoFingers: eval(Eli.Parameters['Cancel Two Fingers'])
};
TouchInput.isCancelled = function() {
if (Eli.Param.Utilities.CancelTwoFingers === true) {
return false;
} else {
return this._cancelled;
}
};
Also, I have seen some plugins doing that with boolean parameters, using a string and then eval.
What I'm missing?
Code:
Eli.Param.CancelTwoFingers= String(Eli.Parameters['Cancel Two Fingers']);
Eli.Param.CancelTwoFingers= eval(Eli.Param.Cancel Two Fingers);


