instedd / mbuilder

Scalable SMS application builder
http://mbuilder.instedd.org/
6 stars 1 forks source link

Create conditionals by dragging tokens #71

Closed waj closed 9 years ago

waj commented 9 years ago

When a tokengets dragged between steps (could be inside a loop box), a hint of a conditional box gets created saying : "if [token name](is equal to) [placeholder] then".

If the token can only be a single value (because it was created as pill in the message or is inside a for each on a non-aggregated table) then show: "if [token name](is equal to) [placeholder] then".

If the token could have multiple values (because it came from a filtered table or is inside a for each on an aggregated table) then show: "if (any|all) [token name](is equal to) [placeholder] then".

No need for else for now.

The placeholder should be able to receive other tokens or take written texts as fields under tables do now.

Right clicking on "is equal to" should display a drop down menu with: contains, does not contain, is exactly, greater than, less than, equal to, not equal to, is between, is not between.