I'm revisiting an old command version that I had apparently discarded, and conceded to use the Compound Condition Builder instead of a small text array that I can continually and easily expand as needed. Not the biggest deal, of course I can just keep using the Compound Condition Builder as in example 2 below, but I'm confused because I thought I had a good understanding of this, and maybe I'm just misunderstanding something yet again.
This works well:
COMMAND: "[Enable;Allow;Initialize;Turn On;Turn Off;Disable;Terminate] Push To Talk Mode"
Set Text [~avcs_on] to 'Enable Allow Initialize Turn On'
Set Text [~avcs_off] to 'Turn Off Disable Terminate'
//
Begin Text Compare : [~avcs_on] Contains '{CMDSEGMENT:0}'
Write [Purple] 'ON command fired' to log
End Condition - Exit when condition met
//
Begin Text Compare : [~avcs_off] Contains '{CMDSEGMENT:0}'
Write [Pink] 'OFF command fired' to log
End Condition - Exit when condition met
...and this works well:
COMMAND: "[deploy;extend;extent;lower;raise;retract;toggle;] [the;the landing;landing;] [gear] [down;up;]"
Begin Condition : [{CMDSEGMENT:0}] Contains 'raise' OR [{CMDSEGMENT:0}] Contains 'retract' OR [{CMDSEGMENT:3}] Contains 'up'
Write [Purple] 'UP command fired' to log
End Condition - Exit when condition met
//
Begin Condition : [{CMDSEGMENT:0}] Contains 'deploy' OR [{CMDSEGMENT:0}] Contains 'extend' OR [{CMDSEGMENT:0}] Contains 'extent' OR [{CMDSEGMENT:0}] Contains 'lower' OR [{CMDSEGMENT:3}] Contains 'up'
Write [Pink] 'DOWN command fired' to log
End Condition - Exit when condition met
...but why does this not work? I'd love to use this command like this, without a suffix/prefix, in a single command where I can adjust the ~up/~down words in a simple text array variable, without entering a *long* compound condition builder if possible:
COMMAND: "[deploy;extend;extent;lower;raise;retract;toggle;] [the;the landing;landing;] [gear] [down;up;]"
Begin Text Compare : [{CMDSEGMENT:0}] Contains 'toggle'
Write [Orange] 'toggle command fired' to log
End Condition - Exit when condition met
//
Set Text [~up] to 'raise retract up'
Set Text [~down] to 'deploy extend extent lower'
Begin Condition : [~up] Contains '{CMDSEGMENT:0}' OR [~up] Contains '{CMDSEGMENT:3}'
Write [Purple] 'UP command fired' to log
End Condition - Exit when condition met
//
Begin Condition : [~down] Contains '{CMDSEGMENT:0}' OR [~down] Contains '{CMDSEGMENT:3}'
Write [Pink] 'DOWN command fired' to log
End Condition - Exit when condition met
example profile attached:
*edit: FTR, I had tried a bit of case sensitivity, and quickly abandoned that line of thinking, would hate if there was some trick there I missed