Start a new topic

vis (hide/show) and if statement

Hi all

Question about vis (hide/show) and if statement


How to check if a component is visible?

something along those lines :

if (vis btmin,0)

{

vis btmin,1

} else if (vis btmin,1)

{

vis btmin,1

}


cheers


1 person likes this idea

The vis command should be used as (assumes a component .objname of btmin)

vis btmin,0 // hides btmin

or

vis btmin,1 // shows btmin


There should be a reason for why you want to show or hide

There is no if vis btmin


Attempting to make logic based on if btmin is visible or not is bad logic

Rather, make logic based on reason why btmin was to be hidden or shown





Thanks for the answer


Regards

Login or Signup to post a comment