Author Topic: USERUI Function  (Read 4260 times)

0 Members and 1 Guest are viewing this topic.

Yacine

  • Hero Member
  • *****
  • Posts: 3210
USERUI Function
« on: May 22, 2010, 10:00:06 PM »
http://msdn.microsoft.com/en-us/library/ms195645(office.12).aspx says:
Quote
Evaluates one of the two expressions depending on the value of state.
USERUI(state,defaultexpression,userexpression)
Remarks
If state is 0, the USERUI function evaluates the defaultexpression. If state is 1, it evaluates the userexpression.
Example
USERUI(1, if(Width>6in, 6in, Width), Width*0.75)
Evaluates the expression Width*.075 and returns the result.

Has anyone played with this function? It looks to me as it does the same as a regular IF. What is it intended for?

« Last Edit: May 22, 2010, 11:02:11 PM by Yacine »
Yacine