This function will create a shortcode that can compare 2 values.
To be able to use the shortcode below you will first need to go to the Dashboard -> Profile Builder -> Settings -> Advanced Settings -> Shortcodes -> and check “Enable Compare shortcode”.
[compare val1="test" val2="test" operator="=="]
List if the values are the same?
- val1, val2 – what values to compare
- operator – select one operator to compare values: == , ===, !=, <, >, <=, >=
You can also change the returned text.