User Tools

Site Tools


modding:function:link

Differences

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

Link to this comparison view

modding:function:link [2017/06/04 22:29] – created 0xabcdefmodding:function:link [2017/06/04 22:36] (current) 0xabcdef
Line 5: Line 5:
 ^ Syntax | (link string) -> data | ^ Syntax | (link string) -> data |
 ^ Arguments | string: A string that may contain a list or struct | ^ Arguments | string: A string that may contain a list or struct |
-^ Returns | data: If list or struct that was contained in the string, then it returns that if it was properly formatted or an error if not. Otherwise, it returns the first item after splitting the string by whitespace. |+^ Returns | data: If list or struct that was contained in the string, then it returns that if it was properly formatted or an error if not. Returns **True** if the string was equal to "true" (case insensitive) or **Nil** if the string was equal to "nil" (case insensitive). Otherwise, it returns the first item after splitting the string by whitespace. |
 ^ Category | [[struct functions|struct]], [[list functions|list]], [[string operator functions|string operator]] | ^ Category | [[struct functions|struct]], [[list functions|list]], [[string operator functions|string operator]] |
-^ Description | Can be used to create a list or struct from a string |+^ Description | Can be used to create a liststruct, or boolean from a string |
  
 === Example === === Example ===
 Return to [[:Functions]] list Return to [[:Functions]] list
modding/function/link.1496615399.txt.gz · Last modified: 2017/06/04 22:29 by 0xabcdef