Jump to content

[SOLVED] if statement


The Little Guy

Recommended Posts

I have this if statement, and it isn't working, can you please help?

 

What it needs to do is this:

 

- remainCups needs to be a number that is 1 or larger

AND

- rdo2 OR rdo1 must be checked

 

remainCups = document.getElementById('remainCups').value;
if(isNaN(remainCups) || (!document.getElementById('rdo2').checked || !document.getElementById('rdo1').checked)){

Link to comment
https://forums.phpfreaks.com/topic/120022-solved-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.