You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

michel

Professional

  • "michel" started this thread

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

1

Sunday, January 24th 2010, 10:39pm

if() operator: "LE" - lower or equal ... not working???

Hi Klaus,

I am trying to use the if(a LE b,trueaction,falseaction) operator and it seems to not work...

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<action name="pre_set_thumbs">
	set(i,1);
	set(thumbs_number,27);	
	set(param_1,%1);
	if (param_1 == true, set_thumbs_in(1,%1) , set_thumbs_out(1,%1));
</action>

<action name="set_thumbs_in">
	tween(plugin[thumb%1].alpha,1,0.5);set(plugin[thumb%1].enabled,%2);set(plugin[thumb%1].visible,%2);
	inc(i);
	set(param_2,%2);
	add(dst,thumbs_number,1);
	if (i LT dst, trace(i); set_thumbs_in( get(i) , get(param_2) ); , trace(no));
</action>

<action name="set_thumbs_out">
	tween(plugin[thumb%1].alpha,0,0.2,,set(plugin[thumb%1].visible,%2););set(plugin[thumb%1].enabled,%2);
	inc(i);
	set(param_2,%2);
	add(dst,thumbs_number,1);
	if (i LT dst, trace(i); set_thumbs_out( get(i) , get(param_2) ); , trace(no));
</action>

in lines 13 and 21, if I change LT operator with LE operator, the condition is false ... *blink*

I am using krpano 1.0.8 beta 9 (build 2010-01-19).

Thank you,
SAlut.

2

Monday, January 25th 2010, 8:17am

ohhh...

sorry, yes, you're right!
the '<=' and 'LE' if operators are working wrong! (a stupid typo error in the code)

it will be fixed in the next release!

thanks,
Klaus