Jump to content

This topic is 8302 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm not sure what you mean by "more if statments in one if statment".

[fmp-if: xxx .yy. uuu]

[fmp-else]

[fmp-if: aaa .cc. ddd] <!--these two lines in FMPro 4.0-->

<!--or-->

[fmp-elseif: aaa .cc. ddd] <!--just this one line FMPro 5.0+-->

[/fmp-if]

[/fmp-if]

Make sure you close each if-conditional.

Posted

I believe you can also use this boolean structure:

[FMP-If: (Field:Field1.eq.Value1).or.(Field:Field2.eq.Value2)]

.

.

.

[/FMP-If]

You can also use .and. as a boolean operator. It's been awhile since I've used this technique; your results may vary.

Posted

This is an example of a fairly complex conditional I use with Lasso

[if: (((Field:'area1status') == 'Complete') && ((Field:'area4status') == 'Complete')) && ((((Field:'area2status') == 'Complete') && ((Field:'area3status') == 'Complete')) || ((Field:'area5status') == 'Complete'))]

The syntax is slightly different FMP-If etc. but the same structure should work using your example

[FMP-If: this .neq. that & he .eq. hi]

Using symbols im used to would equal

[FMP-If: (this != that) && (he == hi)]

or this may be more successful

[FMP-If: (this.neq.that) && (he.eq.hi)]

give it a go my FMPro syntax is a little rusty but the theory is sound. I think if you re-read the bridge's post he already told u this

smile.gifcool.gif

Posted

You can use:

[FMP-If: (Field:name.Eq.david).or.(Field:name.Eq.dave)]

Welcome David!

[FMP-ElseIf: Field:name.Eq.eric]

Hi Eric!

[FMP-Else]

Hi Stranger!

[/FMP-If]

This is straight from the FM site Knowledgebase article #106550

All the best.

Garry

This topic is 8302 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.