Project

General

Profile

Returnex » History » Revision 3

Revision 2 (Per Amundsen, 02/14/2014 03:26 AM) → Revision 3/4 (Per Amundsen, 02/14/2014 03:27 AM)

_Added in 1.9.0_ 

 */returnex [text]* 

 Halts a currently executing script and allows the calling routine to continue processing. 

 Same as [[/return]] but retains all spaces, including leading, trailing, and multiple. 

 *Parameters* 

 [text] - Text to return. 

 *Example* 

 <pre> 
 <code class="php"> 
 alias example { 
   ;Prints 9: <space>A<space><space>B<space><space>C<space>. 
   echo -a $len($preserve_space) 
 
   ;Prints 5: A<space>B<space>C. 
   echo -a $len($strip_space) 
 } 
 
 ;Return with the spaces intact. 
 alias preserve_space returnex $get_abc 
 
 ;Collaps spaces. 
 alias strip_space return $get_abc 
 
 ;Just an example string "<space>A<space><space>B<space><space>C<space>". 
 alias get_abc returnex $+($chr(32), A, $chr(32), $chr(32), B, $chr(32), $chr(32), C, $chr(32)) 
 </code> 
 </pre>