Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Comparing 2 field values using substitution

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
12 years 2 months 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 1 month 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