`Rexex Match` and `Contains Regex Match` in `If Statement`

Just like how the @now works in the Modify Time block, could regex be added to the If Statement to eliminate the need for multiple blocks or expand functionality to the Regex Match block.

This suggestion would basically add the regex block’s logic to the If Statement and Advanced Conditional to only execute if the Regex Match would normally output true

Was literally thinking about how nice this would be. If “contains regex”, “equals regex”, or “doesn’t contain regex”.

Fr. It’s easy enough to add it but that’s a whole nother level of complexity. It’s doable with the following configurations but far easier and quicker for it to be built into the conditional’s logic

Equals regex

  1. Regex match
  2. If regex match = true

Contains regex

  1. Create local variable
  2. Split string iterator (iterate over spaces)
  3. Regex match
  4. If regex match = true
    4.1) Update local var
    4.2) Break
  5. If local var = true
  6. Continue

Does not contain regex

  1. Create local variable
  2. Split string iterator (iterate over spaces)
  3. Regex match
  4. If regex match = true
    4.1) Update local var
    4.2) Break
  5. If local var = false
  6. Continue
1 Like