With both Profile Builder and WordPress Creation Kit plugins using Mustache as their template system for things like User Listing and Swift Templates, we need at times the possibility to compares different values.
This however, is not possible in Mustache. So a shortcode to compare values comes to the rescue.
Compare Shortcode
How to use
Array
Code wise, it’s fairly straight forward. You can also see what operators are supported:Array
Subscribe to get early access
to new plugins, discounts and brief updates about what's new with Cozmoslabs!
A great addition to WCK. I would love to see AND / OR added to the capability, so
[compare val1=”{{abc}}” val2=”” operator=”!=” AND val1=”{{def}} val2=”” operator=”!=”]
Also, is nesting supported? I can’t see any reason why not but in my (limited) testing it didn’t seem to.
This Plugin is not downloading
Updated the link, please try again.