Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
So then perhaps what you want is something like this?
We don't see the definition of S.ts_a.
The variables you show seem to be 1 x 2 matrices. I am not sure if you have created them that way on purpose or accidentially have used the square brackets.
If your variables are matrices consisting of two values on purpose, you will have to decide which of those two values you want to compare against S.ts_a (I suppose this will be a scalar).
For further questions please additionally attach your worksheet.
HI - thanks for replay
The matrices is for purpose
It still does not work?
Because the units are not compatible
But, it does work without the matrix (units are still the same)
The sheet you posted has units for S.H as m*psi, not pressure.
Thanks for you very quicke respond
I can't find unit like that - I will be very greatfull if you show me this
This is what I see.
I see what Mike sees. What version of Prime was used to create the worksheet?
Regardless, you can't use such a comparison in an if statement. The result of the comparison is a vector, for example [1 1], and the if statement does not know what to do with that because it's really the result of two comparisons, not one. Should it execute only if both are true (logical AND), or if one or the other or both are true (logical OR) or if one or the other, but not both, are true (logical XOR)? Under what conditions do you want the if statement to execute?
I am sorry Mike - I was removing 'secret ' data from calcs and and have't noticed this m*psi unit
I think Richard has unswered this question - I thought i can get the matric at the end of 'if statement'
Thanks a lot
So then perhaps what you want is something like this?
Thank you very much!