November 19, 200124 yr Is there a way to put more than one criterion in an IF statement? I want to be able to say [fmp-if: field: ProjectDescription .eq. AND field: ProjectName .eq. untitled]. I'm sure this can be done with nested IF statements, but I'd like to avoid that if possible. Although, if I do a nested if, it doesn't seem to work right. I had it as: [fmp-if...][fmp-if...]do this[/fmp-if][else]do this[/fmp-if] I would think that is correct, but it didn't work. Having more than one criterion in the single IF statement is my preference though. Ideas? Thanks, Carrie
November 19, 200124 yr Hi, keep your [FMP-If] queries as simple as possible and reference calculation fields. You can have nested 'ifs' or a whole load of 'cases' in the calculation field and just deliver yes or no or as the result which your [FMP-If] looks up. Where possible, I try to eliminate [FMP-If]s and deliver the results of calculation fields because they can be indexed and stored rather than being calculated on demand - big speed advantage. regards, jeff
November 19, 200124 yr Hi, keep your [FMP-If] queries as simple as possible and reference calculation fields. You can have nested 'ifs' or a whole load of 'cases' in the calculation field and just deliver yes or no or as the result which your [FMP-If] looks up. Where possible, I try to eliminate [FMP-If]s and deliver the results of calculation fields because they can be indexed and stored rather than being calculated on demand - big speed advantage. regards, jeff
November 20, 200124 yr you do the following [fmp-if: (ProjectDescription .eq. something).AND.(ProjectName .eq. untitled).OR.(projectdescription.eq.somethingelse)].
November 21, 200124 yr Hey SP - If this works, I owe you one. Like Jeff, I try to keep my IF statements simple, and use calc fields. Unfortunately, my solutions have lots of related databases, and calc fields that reference fields from related databases often can't be stored or indexed. I have lots of nested IF statements and plan to play with SP's advice! Thanks!
Create an account or sign in to comment