1. Home
  2. Conecta HUB
  3. Transformations
  4. Mathematics
  5. Whole Positive

Whole Positive

DESCRIPTION:

Checks if the content of SourceValue is a positive integer greater than or equal to 0, otherwise ProcessValue is 0.

EXAMPLE:

Source value: "12

Processed Value: "12".

 

CONFIGURATION:

Value Value2 Relation Relationship2 Operation Factor
Mat Whole Positive

 

CODE:

If IsNumeric(SourceValue) Then

If SourceValue >= 0 Then

ProcessValue = CUInt(SourceValue)

Else

ProcessedValue = 0

End If

Else

ProcessedValue = 0

End If

 

Was this article helpful to you? Yes No

How can we help?