You are not logged in.

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: 770

Location: 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.