Difference between revisions of "Right MEL"

From scripting
Jump to: navigation, search
(Created page with " global proc string Right(string $Input, int $Num) { //Nick Pisca + Ralph Levinson 0001d 2013 //string $Input = "testing"; int $Num = 2; int $Length = size($Input); in...")
 
(No difference)

Latest revision as of 19:57, 24 April 2017

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.