Skip to Content Skip to Menu

Comparing 2 field values using substitution

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
12 years 4 weeks ago #210984 by softforge
Hi, I want to check if one CB field is greater then another and display something based on that logic. I have tried the following but cannot get it to work:

[cb:if cb_weightnew < cb_weightold]Well Done[/cb:if]
[cb:if cb_weightnew < "cb_weightold"]Well Done[/cb:if]
[cb:if cb_weightnew < [cb_weightold]]Well Done[/cb:if]
[cb:if cb_weightnew < "[cb_weightold]"]Well Done[/cb:if]

Can this be done? So far I have only seen examples of fields being compared with manually entered strings. Surly there must be a way of comparing 2 CB fields, I just cant work it out.

Any suggestions?...

Many thanks :)

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
12 years 3 weeks ago #211317 by softforge
Replied by softforge on topic Re: Comparing 2 field values using substitution
Does anyone know if this is possible?

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum