Difference between revisions of "IsInIntArray MEL"

From scripting
Jump to: navigation, search
(Created page with " global proc int IsInIntArray(int $IntArr[], int $IntNum) { for ($x=0;$x<size($IntArr);$x++) { if ($IntArr[$x] == $IntNum) { return 1; } } return 0; } ''Mo...")
 
(No difference)

Latest revision as of 06:59, 22 April 2017

global proc int IsInIntArray(int $IntArr[], int $IntNum) {
	for ($x=0;$x<size($IntArr);$x++) {
		if ($IntArr[$x] == $IntNum) {
			return 1;
		}
	}
	return 0;
} 


More information on strings and arrays, read pages 28-37 in YSYT.