// This agent will ping-pong back and forth internally with its variables. // Variables are manipulated by the 'set' action keyword. when (message init) { var set ping true; } when (ping == true) { script #!/bin/bash echo ping !# var set ping false; var set pong true; } when (pong == true) { script #!/bin/bash echo pong !# var set ping true; var set pong false; }