User Tools

Site Tools


en:right

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:right [2017/09/07 15:00]
junior-root [History]
en:right [2020/02/28 10:46]
Line 1: Line 1:
-===== Right (Function) ===== 
-==== Format ==== 
-**right**( [[stringexpressions|string_expression]], [[integerexpressions|length_expression]]) 
  
-returns [[stringexpressions|string_expression]] 
- 
-==== Description ==== 
-If length is greater than or equal to zero, returns a portion of the specified [[stringexpressions|string_expression]], starting from the first character on the right and continuing for [[integerexpressions|length_expression]] characters. If length is less than zero then remove [[integerexpressions|length_expression]] characters from the right of the string. 
- 
-==== Example ==== 
-<code> 
-print right("Hello", 2) 
-print right("Hello", -2) 
-</code> 
-will display 
-<code> 
-lo 
-Hel 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#String Handling&noheader}} 
- 
-==== History ====  
-|0.9.5b|New To Version| 
-|1.99.99.53|Added length < 0| 
en/right.txt ยท Last modified: 2020/02/28 10:46 (external edit)