%string[0] = <value>;%string[1] = <value>;%string[...] = <value>;for(%i = 0; %i <= ...; %i++){ if(%string[%i] $= <test value>) { //desired actions to take place if true }}
if(%a $= %b || %a $= %c)
$Something = "11";$Something2 = "11";if($Something == $Something2){echo("It's the same!");}
I wanted to know if there was an easy way of typing out if(%string $= "First" || %string $= "Second"){}
Quote from: MrPickle on October 04, 2007, 11:30:41 AMI wanted to know if there was an easy way of typing out if(%string $= "First" || %string $= "Second"){}are you seriously that lazy?
function schk(%compare,%a,%b,%c,d,e){if(%compare$=%a||%compare$=%b||%compare$=c||%compare$=d||%compare$=e){ return 1;}else{ return 0;}}
if(cschk(%str,%x,%y))
Code: [Select]function schk(%compare,%a,%b,%c,d,e){if(%compare$=%a||%compare$=%b||%compare$=c||%compare$=d||%compare$=e){ return 1;}else{ return 0;}}then you can just useCode: [Select]if(cschk(%str,%x,%y))