|
![](/i/fill.gif) |
KalleK wrote:
>
> Thank you, Thorsten.
> I will write a little #macro that fit my needs (that is the condition is only true
if the vectors
> are exactly the same - what I thought (Vector1=Vector2) would do)
Hello Kalle
You don't need a macro to do that.
This expression will help you to achieve the same:
vlength(Vector2 - Vector1)
Your (illegal) code;
#local T0 = x;
#local T1 = 1;
#local T1 = (T0=y);
could then be written like this:
#local T0 = x;
#local T1 = (vlength(y - T0) = 0);
You could even write the last line like this:
#local T1 = (!vlength(y - T0));
(But I will not recommend doing it that way.)
And, as you probably already know, you can
now use the T1 variable within other boolean
expressions.
E.g.:
#if (T1)
#debug "T0 is equal to <0, 1, 0>"
#end
--
Best regards,
Tor Olav
mailto:tor### [at] hotmail com
http://www.crosswinds.net/~tok
Post a reply to this message
|
![](/i/fill.gif) |