So, I've been trying for hours to get this to work, and I seem to not be getting anywhere. I've had people that are decent in JS tell me that this should work, but it doesn't.
So this is an example code of what I'm trying to do:
So when I do this, its not working as I think it should have worked. sampleVar doesn't seem to be putting out 0 nor 1.
Any ideas?
Cheers!
So this is an example code of what I'm trying to do:
Code:
var sampleVar = toNumber(parameters['Sample'], 0);
Game.blah.blah = function() {
switch (sampleVar) {
case 0:
return (value);
break;
case 1:
return (vale);
break;
}
};
So when I do this, its not working as I think it should have worked. sampleVar doesn't seem to be putting out 0 nor 1.
Any ideas?
Cheers!