Posted 17 December 2012 - 10:24 AM
im trying to make a function that makes the if statement w/ or shorter. for example
I don't have any code because I think if it would be possible before coding it. And I cant think of any ways to do that without making the arguments into a table.
By the way I'm talking of like
if One == "two" or One == "three" or One == "four" then
into
if is(One,"two","three","four") then
Is this even possible?I don't have any code because I think if it would be possible before coding it. And I cant think of any ways to do that without making the arguments into a table.
By the way I'm talking of like
function is(fVariable,args)
not
function is(fVariable,equalOne,equalTwo,equalThree,equalFour)
etc.