This documentation is archived and is not being maintained.
USERUI Function
Last modified: March 09, 2015
Applies to: Office 2013 | Visio 2013
In this article
Syntax
Remarks
Example
Evaluates one of the two expressions depending on the value of state.
USERUI(state,defaultexpression,userexpression)
Parameters
|
Name
|
Required/Optional
|
Data Type
|
Description
|
|
state
|
Required
|
Boolean
|
Determines which expression to evaluate.
|
|
defaultexpression
|
Required
|
String
|
The default expression.
|
|
userexpression
|
Required
|
String
|
An expression supplied by the user.
|
If state is 0, the USERUI function evaluates the defaultexpression. If state is 1, it evaluates the userexpression.
USERUI(1, if(Width>6in, 6in, Width), Width*0.75)
Evaluates the expression Width*.075 and returns the result.