Conditional Calculation

The following code sample stores the value of a tag only if it is 100.
IF CurrentQuality("Simulation00001")=100 THEN 
Result=CurrentValue("Simulation00001")
END IF