Message 1 of 3

Not applicable
10-31-2019
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a question. I made in my past several I-logic rule, only now im running stuck.
I want to round up my custom property (weight="gewicht").
Only when i get the mass the custom property keeps on 0. Why?
I made the following rule:
Dim propertyName As String = "Gewicht" If (mass <= 30) Then iProperties.Value("Custom", "Gewicht") = Ceil(mass / 1) * 1 & " Kg" ElseIf (mass > 30) And (mass <= 100) Then iProperties.Value("Custom", "Gewicht") = Ceil(mass / 5) * 5 & " Kg" ElseIf (mass > 100) And (mass <= 1000) Then iProperties.Value("Custom", "Gewicht") = Ceil(mass / 10) * 10 & " Kg" ElseIf (mass > 1000) Then iProperties.Value("Custom", "Gewicht") = Ceil(mass/50)*50 & " Kg" End If
Can someone help me out, thx.
Solved! Go to Solution.