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.

Anoril

Trainee

  • "Anoril" started this thread

Posts: 69

Location: Paris, France

Occupation: Game Developer and Photographer

  • Send private message

1

Tuesday, July 22nd 2014, 2:23pm

Variable status (NaN, undefined, ...)

Hello!

I've seen in some script that one can test variable definition using

Source code

1
ifnot ( myvariable === undefined, xxx, yyy );


I'm not even sure that works correctly...

I would like to know if there is a way to detect "Not a Number" values. I've tried something like

Source code

1
ifnot ( myvariable === NaN, xxx, yyy );

but it does not work.

I found no reference to those states in KRPano doc...

Regards,

Paul
« Quidquid latine dictum sit, altum sonatur »
Pentax stuff.

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Tuesday, July 22nd 2014, 3:18pm

Regards,

Alexey

Anoril

Trainee

  • "Anoril" started this thread

Posts: 69

Location: Paris, France

Occupation: Game Developer and Photographer

  • Send private message

3

Thursday, August 28th 2014, 7:09pm

Hi!

Thanks Alexey! Yes, it helped!

Regards,
« Quidquid latine dictum sit, altum sonatur »
Pentax stuff.