Hi Muhammad_Ali,
There are a couple of ways to do this using either If() or Switch() functions.
The If() function was also updated to operate much like a Switch statement, so you can probably just use If()
If( Condition, ThenResult [, DefaultResult ] )
If( Condition1, ThenResult1 [, Condition2, ThenResult2, ... [ , DefaultResult ] ] )
or looking at it another way;
If(condition, trueresult, condition, trueresult, condition, trueresult, defaultresult)
For your example;
If(condition, DisplayMode.Disabled, condition, DisplayMode.Disabled, condition, DisplayMode.Edit)
Hope this helps,
RT