You are not logged in.

Dear visitor, welcome to 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.


Wednesday, October 19th 2011, 5:23pm

IFNOT is not working

Hi there,

I'm using KRPano for quite a while now and don't understand what i do wrong at this point:

Source code

<action name="test">ifnot(get(xml.scene) == fitness, trace(get(xml.scene)); 	);</action>

Elsewhere i have a plugin with the function:

Source code


The output is:

Source code

INFO: fitness

This should be impossible because if the outcome of get(xml.scene) would be 'fitness' it should not give me that trace, right? What i am doing wrong?

Posts: 1,855

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message


Wednesday, October 19th 2011, 5:48pm

try 'fitness'
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter ::


Wednesday, October 19th 2011, 5:54pm

Thanks. Tried it, but the trace still gives 'fitness' back.



Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message


Wednesday, October 19th 2011, 6:09pm

Hi krTim,

Using get() inside the condition is not needed:
The var1 or var2 can be a variables or values. When var1 or var2 is a variable then the content of the variable will be used for comparison. Only when using a 'strict' comparison operator (=== or !==) then var1 and var2 must be variables (or null).
Your code should be:

Source code

<action name="test">ifnot( xml.scene == fitness , trace(xml.scene);   );</action>



Wednesday, October 19th 2011, 6:36pm

Thanks a lot Michel, it works like a charm now.