Model 304 Sample Logic

VB Script Example (Model 304)

The following provides example inputs along with corresponding VB Script for Model 304.

Identify Model Inputs

  • FaultTag

  • LocTag

  • MeasTag

  • TypeTag

  • AmountTag (alias = A)

  • AmountTag (alias = B)

  • AmountTag (alias = C)

Waste Logic

If TypeTag = 1 Then

     Amount = A

ElseIf TypeTag = 2 Then

     Amount = B

ElseIf TypeTag = 3 then

     Amount = C

Else

     Amount = Null

End If

Location Logic

Location = LocTag

Fault Logic

Fault = FaultTag

Type Logic

WasteType = TypeTag

Measurement Logic

If TypeTag = 1 Then

     Measure = "Lbs"

ElseIf TypeTag = 2 Then

     Measure = "Tons"

ElseIf TypeTag = 3 then

     Measure = "Kg"

End If

See Also