Forum Discussion
pashooo
14 years agoContributor
I faced the similar problem, I need to compare values in the table and to warn when at least one value is equal zero! The right values in the table are any number differ from zero.
I have put zero in every slot of Table6 in TC storage and have modified code from your link:
if(!Tables.Table6.Compare())Log.message("No zero)") //means not all slots contain zero
else Log.error("empty slot)") //means all slot containing zero
... but I need to get error when at least 1 slot contain zero and message "No zero" when all of slots dont contain zero! is this construction possible? ...and how should I change my code?
I have put zero in every slot of Table6 in TC storage and have modified code from your link:
if(!Tables.Table6.Compare())Log.message("No zero)") //means not all slots contain zero
else Log.error("empty slot)") //means all slot containing zero
... but I need to get error when at least 1 slot contain zero and message "No zero" when all of slots dont contain zero! is this construction possible? ...and how should I change my code?