0

Need help with simple script to change IsVisible property

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

null
    • wise_james
    • 7 days ago
    • Reported - view

    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;

            }

Content aside

print this pagePrint this page
  • 7 days agoLast active
  • 1Replies
  • 16Views
  • 3 Following