Actions

Difference between revisions of "%sscan"

From Zenitel Wiki

(New page: 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 em...)
 
Line 14: Line 14:
  
 
Back to [[Event_Handler#List_of_macros]].
 
Back to [[Event_Handler#List_of_macros]].
 +
 +
[[Category:Event Handler]]

Revision as of 16:56, 17 August 2007

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 %sscan(%edi,connect)
  ...  
Endif 


Back to Event_Handler#List_of_macros.