{{tag>Function Function_List Text}} ====== SUBSTRING ====== ===== Description ===== Extracts a string between two indexes of the given string (the second index is not inclusive) ===== Syntax ===== ''SUBSTRING (text, start, end)'' ===== Parameters ===== Attribute of the Plain Text type or string constant or calculation producing text and two indexes ===== Returns ===== **Text**: the part of the text between the two indexes (end index not included). ===== Example ===== IF SUBSTRING (Account.Name, 0, 4) = 'John' THEN ... ===== Related ===== [[ref:a_f:f:af:chars_from_left|CHARS_FROM_LEFT]], [[ref:a_f:f:af:chars_from_right|CHARS_FROM_RIGHT]], [[ref:a_f:f:af:index_of|INDEX_OF]], [[ref:a_f:f:af:length|LENGTH]]