IF vs IIF in Equations
IF vs IIF in Equations
(OP)
Just discovered the IF operator can now be used in SW12, as opposed to the IIF operator in previous versions.
SW11
htt p://help.s olidworks. com/2011/E nglish/sol idworks/sl dworks/leg acyhelp/sl dworks/par ts/operato rs_and_con stants.htm
SW12
http://hel p.solidwor ks.com/201 2/English/ SolidWorks /sldworks/ r_visual_b asic_if_fu nction.htm ?id=c32893 b7fc3e4458 bde5678f35 5f3c20#Pg0
Anyone know of other changes?
SW11
htt
Quote:
You can also use the Visual Basic IIf function when specifying a model dimension. This function returns one of two values depending on the evaluation of an expression. For example, if the equation specified is "D1@Sketch1" = (IIf("D1@Sketch4">15, 20, 10)) + 8, then:
SW12
http://hel
Quote:
You can also use the Visual Basic If function when specifying a model dimension.
This function returns one of two values depending on the evaluation of an expression.
For example, if the equation specified is "D1@Sketch1" = (If("D1@Sketch4">15, 20, 10)) + 8, then:
Anyone know of other changes?






RE: IF vs IIF in Equations
See what happens with the equation:
"dummy" = MsgBox("Hello World If(")
It wouldn't surprise me one bit if you got a message box that says:
Hello World IIf(
-handleman, CSWP (The new, easy test)
RE: IF vs IIF in Equations
It's totally different now.