framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.06k stars 3.23k forks source link

VirtualDOM if condition #3644

Closed aldoexpert closed 4 years ago

aldoexpert commented 4 years ago

I have use f7 v5.7 and I try for code in template html {{#if (bool1 or bool2 or bool3) and !bool4 }} {{#if (bool1 || bool2 || bool3) && !bool4 }} but no one can work

how can I do this condition?

shastox commented 4 years ago

{{#if bool1}}{{#if bool2}}... or {{#js_if "this.bool1 && this.bool2 ..."}

aldoexpert commented 4 years ago

Thanks @shastox this works