Lua → VBScript SwxWare v13.10
This function returns the current script users' Away status.
if (IsAway() == true) then -- do something else -- do something else end
or if being used directly within a GSE property dialog, e.g. in an Evaluate block to directly evaluate the Away status and place it the block exits:
This function returns a boolean value.
If being used in a group context (from SwyxWare v13.27) this function returns false. Read more about user and group context differences here.
This function can be called at any time within the call routing script.
This function only returns the SwyxWare internal away state. If you need the extended state which includes also the status of connected systems, like MS Teams, you should use the function PBXUser.AwayViaPresence().