You enter it the same way as you wrote it:
(io24 + io26)/2
Thank you so much. It works perfectly ok!
If I may ask one more similar question:
Is there a command for checking a parameter such as: if io178 = 1 this means "2G", if io178 = 2 this means "4G" if io178 = 0 this means "3G"
Thanks
Something like this:
io178 == 1 ? "2G" : io178 == 2 ? "4G" : "3G"
Dear Anton,
Thanks so much for the support.
I tried
io178 == 1 ? "2G" : io178 == 2 ? "4G"
as type: Boolean / Number / String, but in every case it gives me the error:
Invalid parameters or constrains violation:
parse error - ParseException (... < ComputedAttributesHandler:102 < AttributeResource:57 < ...)
Any suggestions?
The suggestion would be to use a valid expression, like the one I provided. What you have is invalid.
Thank you.
Your suggestion works perfectly OK!
Hi again,
When I do the equation for example: (io24 + io26)/2 the answer is an integer number. Is there a setting or so that can have the number in 1 or 2 decimal places?
Thanks
I'm sure there's a way to format it. Check the syntax and API documentation.
Thanks!
Add 0.0 to the result calculation. This will convert integer to double.
Hi,
Can I get some help as to how to perform let's say an addition in computed attributes.
i.e. I have a parameter io24 and io26, and I want to add this 2 parameters and divide the result by 2: How can I enter in the expression: (io24 + io26)/2
Thanks!