Actions

%busy: Difference between revisions

From Zenitel Wiki

(Created page with " IF %busy(4) LOG "Station 4 is busy" stop ENDIF LOG "Station 4 is free"  or more general: IF %busy(%1.phy) LOG "Station %1.phy is busy" stop ENDIF ​LOG "Sstation %1.phy...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{AI}}
The '''%busy''' macro is used in the [[Event Handler]] to check if a station is busy or free.


===Syntax===
'''%busy(station)'''


IF %busy(4)
Return 1 if busy, and 0 if free
LOG "Station 4 is busy"
* station:  Physical number 1 - 552
stop
ENDIF
LOG "Station 4 is free" 


or more general:


IF %busy(%1.phy)
===Examples===
LOG "Station %1.phy is busy"
%busy(4)          - ''Returns 1 if station 4 if busy''
stop
 
ENDIF
 
​LOG "Sstation %1.phy is free" 
IF %busy(%1.phy)
LOG "Station %1.phy is busy"
stop
ENDIF
​LOG "Station %1.phy is free"  
 
 
Back to [[Event_Handler#List_of_context_parameters]].
 
[[Category:Event Handler macros]]
[[Category:Event Handler]]

Latest revision as of 15:40, 9 June 2020

AI.png

The %busy macro is used in the Event Handler to check if a station is busy or free.

Syntax

%busy(station)

Return 1 if busy, and 0 if free

  • station: Physical number 1 - 552


Examples

%busy(4)           - Returns 1 if station 4 if busy


IF %busy(%1.phy)
LOG "Station %1.phy is busy"
stop
ENDIF
​LOG "Station %1.phy is free" 


Back to Event_Handler#List_of_context_parameters.

MediaWiki spam blocked by CleanTalk.