0
Need help with simple script to change IsVisible property
Forum / Questions & Answers
I am looking for some help with a simple script to set the IsVisible property of a Symbol.
For instance, let's say The source of the Symbol1 is set to a value box (ValueBox1), and if [ValueBox1] is greater than .5 I would like the Symbol1 to be visible. If the value of [ValueBox1] is less than .5, I would like the Symbol1 not visible.
1 reply
-
How about
public void ValueBox1_OnEndValueChange(object sender, TagSubscriptionArgs subscription, TVQ tvq)
{
if (Convert.ToInt32(ValueBox1.Value.Value) > 0.5) Symbol1.IsVisible = true;
if (Convert.ToInt32(ValueBox1.Value.Value) < 0.5) Symbol1.IsVisible = false;}