FIND
Inputs
IN | STRING | Character string |
STR | STRING | Specific characters to search for within the STRING |
Outputs
POS | DINT | Position of the first character of STR in IN, or 0 if not found. |
Remarks
The first valid character position is 1. A return value of 0 means that the STR string has not been found. Search is case sensitive. In FFLD language, the operation is executed only if the input rung (EN) is TRUE. The output rung (ENO) keeps the same value as the input rung.
In IL "Instruction list" This is a low-level language and resembles assembly, the first input (the string) must be loaded in the current result before calling the function. The second argument is the operand of the function.
ST Language
POS := FIND (IN, STR);
FBD Language
FFLD Language
(* The function is executed only if EN is TRUE *)
(* ENO keeps the same value as EN *)
IL Language:
See also