Are there Variations of [if x=n] something [/if x]?

By: Joe Semones | Asked: 03/04/2025
ForumsCategory: How-toAre there Variations of [if x=n] something [/if x]?
Joe Semones asked 5 days ago
Joe Semones replied 3 days ago

Somehow, the body of my question disappeared. Here it is. Maybe it'll survive in the Comments:

"Is it possible to use variations of the [if x=n] something [/if x]  construct to evaluate values of other shortcodes? Like comparing the result of a [user_meta key=some_key], for example? Or, evaluate the result of fetching [frm-field-value field_id=n user_id=current] equals="something"?

Example that doesn't work:

[if [user_meta key=some_key] equals="something"] value is read as something[/if user_meta key=test_value]. 

I'm trying to use some logic to present more clear information in the Before Content section of a view."

1 Answers
Victor Font Staff answered 3 days ago

I'm not sure what you mean by "variations", but here are the docs for conditional statements. https://formidableforms.com/knowledgebase/conditionals/#kb-types-of-conditional-statements

Joe Semones replied 3 days ago

I just saw in the Change log that the FFPro release on 2/11 added a new capability:

New: Shortcodes can now be used in if condition shortcodes, like [if 1 equals="[2]"]Match[/if 1] and [if 1 equals="[frm-field-value field_id=1 entry_id=3]"]Match[/if 1].

This was what I was looking for.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right