June 7, 200223 yr I can't find how to this. I looked in the CDML references database, this forum and google.
June 7, 200223 yr 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.
June 7, 200223 yr 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.
June 7, 200223 yr Author I mean like: [FMP-If: this .neq. that & he .eq. hi] funny ain't it? :-) [/FMP-If]
June 8, 200223 yr 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
June 8, 200223 yr 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
Create an account or sign in to comment