[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.javascript

Reverse sign of boolean in operation

JT

1/14/2016 3:10:00 PM

x=Number.isInteger(k);

If i want x to return the opposite boolean in operation, because if integer i know prime is false?
2 Answers

JT

1/14/2016 3:49:00 PM

0

Den torsdag 14 januari 2016 kl. 16:10:02 UTC+1 skrev jonas.t...@gmail.com:
> x=Number.isInteger(k);
>
> If i want x to return the opposite boolean in operation, because if integer i know prime is false?

well i settlef for x=!x

John Harris

1/15/2016 9:52:00 AM

0

On Thu, 14 Jan 2016 07:09:41 -0800 (PST), jonas.thornvall@gmail.com
wrote:

>x=Number.isInteger(k);
>
>If i want x to return the opposite boolean in operation, because if integer i know prime is false?

x = !Number.isInteger(k);

John