Sharky Posted June 7, 2002 Posted June 7, 2002 I can't find how to this. I looked in the CDML references database, this forum and google.
Keith M. Davie Posted June 7, 2002 Posted June 7, 2002 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.
The Bridge Posted June 7, 2002 Posted June 7, 2002 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.
Sharky Posted June 7, 2002 Author Posted June 7, 2002 I mean like: [FMP-If: this .neq. that & he .eq. hi] funny ain't it? :-) [/FMP-If]
scratchmalogicalwax Posted June 8, 2002 Posted June 8, 2002 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
Garry Claridge Posted June 8, 2002 Posted June 8, 2002 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now