Actions

Difference between revisions of "%sscan"

From Zenitel Wiki

 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
*Returns empty string if ''search-string'' not found  
 
*Returns empty string if ''search-string'' not found  
 
*Useful for parsing [[External_Data_Input]].
 
*Useful for parsing [[External_Data_Input]].
 
Example: Check if EDI text has the string “connect”
 
If %strlen(%sscan(%edi,connect))
 
  ... 
 
Endif
 
 
  
 
  Example: %sscan(ABCDEFGHI,DEF) will return DEFGHI
 
  Example: %sscan(ABCDEFGHI,DEF) will return DEFGHI

Latest revision as of 14:32, 20 September 2023

AI.png

Event_Handler macro - Extract substring by text scan

Format: %sscan(string, search-string)

  • Scan for search-string, extract rest of string including first match
  • Returns empty string if search-string not found
  • Useful for parsing External_Data_Input.
Example: %sscan(ABCDEFGHI,DEF) will return DEFGHI


Back to Event_Handler#List_of_macros.