this

In this example the variable ShowNew is tested to see if it contains the value true, if it does the object containing the script is shown, if not it is hidden.

if (ShowNew == true)
{
 this.Show()
}
else
{
 this.Hide()
}

Close