testing out the isdry boolean logic
changed the isdry function to return the correct value
checking the result format so that comparison as the redline value is possible
added comment on the logs to see what values are coming thru
selecting the redline value from the result array in order to compare against the reading
calling isdry function to change the isdry boolean
logging just our result from the sql query
we have the redline value, now checking to make sure we have the reading from the scope above
we have redline value and reading. Now comparing them to see if we can console log either moist or dry outputs
we can get function to return dry or moist depending on comparison between reading and redline value. Now console logging isdry variable
trying to get isdry to return as true or false instead of the function itself
trying to console log the return value of isdry when its called
trying the same thing one more time
trying to return true or false with dryness variable one level up in scope
changed sql insert query into a callback for the redline query
removed variable name, invoking isdry immediately
function was not a jquery function so could not use .done Instead, added function as a tertiary argument to redline selection
function syntax is correct, we can chain and insert into PG DB but dryness value is still null so it must not be getting passed through the chain.
console logging with comments