IIF Function
IIF Function
(OP)
I have seen this IIF function being mentioned in this forum several times. Can someone tell me what it is? I have never used it before. I couldn't find it in Help.
Thanks
Thanks
When was the last time you drove down the highway without seeing a commercial truck hauling goods?
Download nowINTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: IIF Function
IIf Function
Returns one of two parts, depending on the evaluation of an expression.
Syntax
IIf(expr, truepart, falsepart)
The IIf function syntax has these named arguments:
expr Required. Expression you want to evaluate.
truepart Required. Value or expression returned if expr is True.
falsepart Required. Value or expression returned if expr is False.
Remarks
IIf always evaluates both truepart and falsepart, even though it returns only one of them. Because of this, you should watch for undesirable side effects. For example, if evaluating falsepart results in a division by zero error, an error occurs even if expr is True.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: IIF Function
Thanks
RE: IIF Function
The iif function is an example of some programmatic spillover from the inner workings of SW being available as an "undocumented feature".
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: IIF Function
Jason Capriotti
Smith & Nephew, Inc.
RE: IIF Function
ht
Flores