HouseMD Posted March 21, 2007 Share Posted March 21, 2007 How can i make the $4 detect if it is a number eg. if $4 isn't 1,2,3,4 etc Link to comment
lil Toady Posted March 21, 2007 Share Posted March 21, 2007 what do you mean? $1 $2 $3 $4 etc are the numbers of parameters in a function Link to comment
BetaDevil Posted March 21, 2007 Share Posted March 21, 2007 if ($4 isnum 1-2-3-4) { something like this? Link to comment
HouseMD Posted March 21, 2007 Author Share Posted March 21, 2007 $4 != 1,2,3,4, but that doesn't work Link to comment
lil Toady Posted March 21, 2007 Share Posted March 21, 2007 is a number: if ($4 isnum) {} is NOT a number: if ($4 !isnum) {} Link to comment
HouseMD Posted March 21, 2007 Author Share Posted March 21, 2007 Thanks...Didn;t know lol... Link to comment
Recommended Posts