Actions

Difference between revisions of "%strlen"

From Zenitel Wiki

 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{AI}}
 
[[Event_Handler]] macro -  length of a string
 
[[Event_Handler]] macro -  length of a string
  
Line 4: Line 5:
  
 
*Return length of ''string''
 
*Return length of ''string''
*Useful in [[IF/ENDIF]] on text elements
 
  
Example: Check if EDI text has the string “connect”
+
%strlen(abcdef) will return the value 6.
If %strlen(%sscan(%edi,connect))
 
  ...
 
Endif
 
  
  
Line 15: Line 12:
  
 
[[Category:Event Handler]]
 
[[Category:Event Handler]]
 +
[[Category:Event Handler macros]]

Latest revision as of 15:25, 20 September 2023

AI.png

Event_Handler macro - length of a string

Format: %strlen(string)

  • Return length of string

%strlen(abcdef) will return the value 6.


Back to Event_Handler#List_of_macros.