Symbolica How to define range in if-else statement expression?

2021-10-06T23:27:50Z
Symbolica

Summary


Details

How to define range in if-else statement expression?




Solution

Consider below use case where you need to control the "Count" of the "Pattern Components" proportional to Weight by defining a range, so accordingly "Count" number will vary as the Weight get changed using If Else statements.





 


So, in this case instead of directly using the Weight Expression of Measurement in the "If else" statement, create another Expression like "Weight1" with "Unitless" Dimensionality and use it in the "If Else" statement, refer to the below snap-
 
 




Below is the expression -
 
If ( Weight1 >= 0.5 )&& ( Weight1 <= 0.6 )Then ( 4 )Else (If ( Weight1 >= 0.7 )&& ( Weight1 <= 0.9 )Then ( 5 )Else ( 6 ) )
 
So with the above expression, if Weight ranges between 0.5 kg to 0.6 kg then Count for the pattern will be "4", so accordingly as per the range defined in If Else statement count will get change if the component weight is change.
 

Notes and References

9923395

Hardware/Software Configuration

Platform: INTL64
OS: windows
OS Version: 10_1909
Product: NX
Application: DESIGN
Version: V1926
Function: EXPRESSION

Ref: 002-8522699

KB Article ID# PL8522699

Contents

SummaryDetails

Associated Components

Symbolica