Javascript if(smile > 50). I cant figure out


Hi guys. Im new with affectiva. Im currently working with the demo for camera stream. I adapted the demo so only smiles can be true as detection. What I cant figure out is how to retreive current value to compare in if statement and print a message with an alert saying youre smiling a bit.

I did it on C#(currentsmile) working with unity because I have more experience in C# but Im a bit noob in JS.

Thanks a lot


I would suggest referring this as a starting point :