Message 1 of 4

Not applicable
07-22-2020
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to sort Parameters (Width, Height, Thickness) from smallest to largest and then put that format into an iProperty. No matter what combination of values I try it always returns the WidthxHeightxThickness combination.
Is iLogic unable to handle these types of expressions or am I missing something very obvious?
Here is my code:
If Width <= Height <= Thickness = True Then stock = "=<Width>x<Height>x<Thickness>" ElseIf Width > Height <= Thickness = True Then If Thickness > Width = True Then stock = "=<Height>x<Width>x<Thickness>" Else stock = "=<Height>x<Thickness>x<Width>" End If ElseIf Width < Height > Thickness = True Then If Width < Thickness = True Then stock = "=<Width>x<Thickness>x<Height>" Else stock = "=<Thickness>x<Width>x<Height>" End If Else stock = "=<Thickness>x<Height>x<Width>" End If iProperties.Value(doc, "Project", "Description") = stock MessageBox.Show(stock, "Order")
Solved! Go to Solution.