Compare shortcode

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.

Profile Builder Pro

Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.

Unlock PRO Features

Or download FREE version