Right MEL

From scripting
Jump to: navigation, search
global proc string Right(string $Input, int $Num) {
	//Nick Pisca + Ralph Levinson 0001d 2013
	//string $Input = "testing"; int $Num = 2;
	int $Length = size($Input);
	int $Stump = $Length - $Num + 1;
	string $Val = `substring $Input $Stump $Length`; 
	return $Val;
}



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