# $EPIC: right.txt,v 1.4 2006/08/19 06:21:24 sthalik Exp $ ======Synopsis:====== $__right__( ) ======Technical:====== * If is omitted, this function returns the empty string. * If is omitted, this function returns the empty string. * If is less than 0, this function returns the empty string. * If is more than characters long, then this function will return a copy of the last characters in . * If is less than or exactly characters long, then this function will return a copy of ======Practical:====== Whenever you need to extract the trailing part of a string, you would use this function to get it. This is more useful for fixed-format strings. In ircII, you would use $[[mid]]($[[index]]( ) 9999 ) to extract the part of that was after . In EPIC, you would use $[[after]]( ) because it is faster, more clear, does not have any string limits, and avoids having two copies of . This can be important if is a function call. ======Returns:====== The last characters in . No padding is done. If you need a string that is exactly characters, try: $[[pad]]( " " $[[right]]( )) ======Examples:====== $right(5 biklmnopstv) returns "opstv" $right(15 biklmnopstv) returns "biklmnopstv" $right(-2 biklmnopstv) returns "" $mid($index(@ $userhost()) 999 $userhost()) returns a hostname in an /on. Note that this construction is obsolete, but is still used by some. ======History:====== This function first appeared in ircII.