How to code multiple conditions inside if statement? I have a system that checks the value of a moisture sensor and will also check the time

if (t.hour == 7 &amp;&amp; t.min == 00 &amp;&amp; moistureOneSensorValue &gt;= 700) {
  RelayOne();
  RelayTwo();
}


When moistureOneSensorValue is greater than or equal to 700 it means the soil is DRY, so when all conditions inside the if statement are true the relayOne and relayTwo functions will be called.

My problem is that when moistureOneSensorValue is still moist the above if statement will result in false and the relayOne and relayTwo functions will not be called. I want Arduino to execute and call the relayOne and relayTwo functions and disregard the time. I use time so that the system will only call the relayOne and relayTwo functions in the morning at exactly 7 AM every day, but it needs to check/make sure that the soil is DRY...

Example

First thing in the morning the system will check the time and sensor value; if the if statement results in false the system will keep monitoring and try the if statement until the soil is DRY. But I think when that happens it will be over 7 AM.

Sorry for the messy explanation.
I'm not sure how quickly you soil could get dry, but I suspect what you want to do is to periodically check the dryness throughout the day. Say like every two hours:

// Check every 2 hrs (when hr is even)
if ( t.hour % 2 == 0 &amp;&amp; moistureOneSensorValue &gt;= 700 ) {...}


You could also bound it to only during the day time:

if ( t.hour &gt;= 7 // after 7a
  &amp;&amp; t.hour &lt;= 19 // before 7p
  &amp;&amp; t.hour % 2 == 1 // every 2 hrs (when hr is odd)
  &amp;&amp; moistureOneSensorValue &gt;= 700 // soil is dry
) {...}