Skip to content
bergsma edited this page Sep 26, 2014 · 5 revisions

#mode

###Return the current mode name, either "event" or "query".

Syntax

name = mode ;

Arguments

  • None

Return Value

str name
  • modeName : The string "event" or "query".

The STATUS variable is set to $ACKNOWLEDGE

str name
  • modeName : The string "event" or "query".

The STATUS variable is set to $ACKNOWLEDGE

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: name = mode ;

Description

The current mode name always refers to the mode invoked by the last incoming EVENT or QUERY message. If the HyperScript program was self-started, without a message, then the mode is always "event".

Examples

puts { "The mode of the last message received was ",mode};

Related Links

method
self
sender

Clone this wiki locally