expandorg / worker-app

worker application
https://portal.expand.org/
Mozilla Public License 2.0
2 stars 0 forks source link

Add if, else, and, or to module format #226

Closed kieranoreilly closed 5 years ago

kieranoreilly commented 5 years ago

I've found quite a few use cases where if, else, and, or would be useful for module format

sslava commented 5 years ago

we could implement it as container module with conditional rendering

sslava commented 5 years ago

implemented conditional module it covers if & else cases

sslava commented 5 years ago

@kieranoreilly one question: the condition should depend only on the preset variables? or it is possible to change the condition value by triggering a switch control for example within a module?

kieranoreilly commented 5 years ago

Ah that is a great question. I think the long term vision is the later, but anything is better than nothing right? :D

sslava commented 5 years ago

sounds good to me :)

sslava commented 5 years ago

now it supports && || ! and variables from current form