Based on an Expression
AMPS provides an If
module for stopping execution of the action unless a specific condition is met.
This module does not add any variables to the AMPS context.
For example, the following action publishes a message to a topic if a client with a name that matches a specific expression logs on.
The example above is provided to illustrate use of amps-action-if-condition
.
In practice, this could also be done using an amps-action-on-publish-message
action to monitor the /AMPS/ClientStatus
topic with a filter.
Last updated