@LEFT

Print Topic  Return to Overview  Previous Topic  Next Topic 

@LEFT[n,string] : If n is positive, it returns the leftmost n characters of string. If n is greater than the length of string, it returns the entire string. If n is negative, it returns string after dropping its rightmost n characters, unless -n is greater than the length of string, in which case it returns an empty string.

 

Examples:

 

%@LEFT[2,jpsoft]jp        
%@LEFT[22,jpsoft]jpsoft        
%@LEFT[-2,jpsoft]jpso        
%@LEFT[-22,jpsoft]empty string

 

Topic "f_left.htm" last edited 1/26/2008. ©2008  JP Software, Inc.
Keywords: @LEFT