[[modding:function:find]] === find === [[modding:function:find]] ^ Syntax | (find source target [keyIndex]) -> position of target in source (0-based) | ^ Arguments | source: The string or list that you are looking for the other expression in. | ^ | target: The expression you are looking for. | ^ | [keyindex]: The index in the source you want to start looking at | ^ Returns | integer: 0 based index of the expression you where looking for. Returns nil if not found. | ^ Category | [[0.99]], [[list]], [[string operator]] | ^ Description | Finds the index of the first time that the second argument appears in the first argument and returns it. | === Example === (find '(1 2 3 4 5) 3) Returns 2 Return to [[:Functions]] list