Switch Calculation - If Variable don't exist
Posted: Tue Aug 06, 2024 4:37 pm
Hello,
I would like to obtain a calculation with these 2 variables.
[Switch.Calculation:Expression="[Metadata.Text:Dataset="Xml",Model="XML",Path="/xml/Quantity"]*[Metadata.Text:Path="/xml/Version",Dataset="Xml",Model="XML"]"]
Some of our products do not include the "Version" variable because of their characteristics.
If the variable is not found, is there a way or a function to replace it with the value '1' for example ?
Thanks.
I would like to obtain a calculation with these 2 variables.
[Switch.Calculation:Expression="[Metadata.Text:Dataset="Xml",Model="XML",Path="/xml/Quantity"]*[Metadata.Text:Path="/xml/Version",Dataset="Xml",Model="XML"]"]
Some of our products do not include the "Version" variable because of their characteristics.
If the variable is not found, is there a way or a function to replace it with the value '1' for example ?
Thanks.