Actions

Difference between revisions of "%sscan"

From Zenitel Wiki

Line 1: Line 1:
 +
{{A}}
 
[[Event_Handler]] macro - Extract substring by text scan
 
[[Event_Handler]] macro - Extract substring by text scan
  

Revision as of 09:56, 11 January 2017

AlphaCom icon 300px.png

Event_Handler macro - Extract substring by text scan

Format: %sscan(string, search-string)

  • Scan for search-string, extract rest of string after first match
  • Returns empty string if search-string not found
  • Useful for parsing External_Data_Input.

Example: Check if EDI text has the string “connect”

If %strlen(%sscan(%edi,connect))
  ...  
Endif 


Back to Event_Handler#List_of_macros.