zeroaccess
Active member
- Local time
- Yesterday, 23:27
- Joined
- Jan 30, 2020
- Messages
- 671
True, but I think checking first before setting the property can help reduce flicker. That is another thing I am battling with.Since you were concerned about brevity, there is no need for this if then. Simply
ctrl.visible = true
Do not need to check if it is not visible. You do not get an error setting something to visible that is already visible. Not that it makes any practical difference, but it would be slightly more efficient. You are not doing an if check, just setting a property.
If you want to toggle (true to false, false to true), instead of an if then else
ctrl.visible = not ctrl.visible