CFIF

1 / 15

# CFIF - PowerPoint PPT Presentation

CFIF. From the ground up. Who am I. Michael Dinowitz Head of House of Fusion Publisher of Fusion Authority Founding member of Team Macromedia CTO of Dinowitz and Associates Using ColdFusion since June 1995. Boolean. True / False “Yes” / “No” !0 / 0. Basic syntax. <CFIF Boolean>

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'CFIF' - albert

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### CFIF

From the ground up

Who am I
• Michael Dinowitz
• Head of House of Fusion
• Publisher of Fusion Authority
• Founding member of Team Macromedia
• CTO of Dinowitz and Associates
• Using ColdFusion since June 1995
Boolean
• True / False
• “Yes” / “No”
• !0 / 0
Basic syntax
• <CFIF Boolean>
• <CFIF 1>
• <CFIF True>
• <CFIF “Yes”>
Evaluation - 1 level
• <CFIF Variable>
• CFIF Is an evaluation zone
• <CFIF IsTrue>
• Is True is a variable with the value True
Comparison – 1 level
• <CFIF “name” is “Michael”>
• Comparison syntax

IS / EQ / Equal

Is Not / NEQ / Not Equal

Contains

Does not Contain

Greater Than / GT

Greater Than or Equal To / GTE

Less Than / LT

Less Than or Equal TO / LTE

Comparison/Evaluation
• <CFIF Name is “Michael”>
• 2 steps
• One for the evaluation of name
• The second for the comparison
Functional Comparison
• <CFIF IsDefined(‘var’) is True>
• 2 steps
• 1 for the function evaluation
• 1 for the comparison

Should be 1 step

<CFIF IsDefined(‘var’)>

IsDefined returns a boolean

Multiple Clauses
• <CFIF clause 1 joiner clause 2>
• <CFIF name is “michael” and age is 11>
• AND - Clause 1 and clause 2
• OR - either or can be true
• NOT - negation
• EQV - both clauses must be the same (true of false)
• IMP - if clause 1 is true and clause 2 is false, then its false otherwise true
• XOR - one or the other but not both
Short Circuited Boolean Evaluation
• Introduced in CF 4.01
• Shortens the operation of multi-clause comparisons using logic
• If the joiner is AND and the first clause fails, the whole comparison fails
• If the joiner is OR and the first clause succeeds then the whole comparison succeeds
Parenthesis
• Separates between logical chunks