coder9 Posted July 25, 2008 Share Posted July 25, 2008 i have this expression below, if(!($jtablegrid_total_rec>=100)) { //add record here. } the expression should do like this, if $jtablegrid_total_rec not equal or greater than 100 it should add a record. is that correct or what is the right expression for this logic? thank you in advance. Link to comment https://forums.phpfreaks.com/topic/116540-is-this-expression-correct/ Share on other sites More sharing options...
unidox Posted July 25, 2008 Share Posted July 25, 2008 Or you can just do if less than. Link to comment https://forums.phpfreaks.com/topic/116540-is-this-expression-correct/#findComment-599223 Share on other sites More sharing options...
coder9 Posted July 25, 2008 Author Share Posted July 25, 2008 just for clarification. it suppose to do like this. if $jtablegrid_total_rec not equal 100 or not greater than 100 it should add a record. Link to comment https://forums.phpfreaks.com/topic/116540-is-this-expression-correct/#findComment-599224 Share on other sites More sharing options...
coder9 Posted July 25, 2008 Author Share Posted July 25, 2008 any help please? i know this is very easy. just a little tweak and it's gonna be ok. thank you. Link to comment https://forums.phpfreaks.com/topic/116540-is-this-expression-correct/#findComment-599225 Share on other sites More sharing options...
abhikerl Posted July 25, 2008 Share Posted July 25, 2008 According to what you said. You seem to be confused. I'll explain what you wrote: if $jtablegrid_total_rec not equal or greater than 100 it should add a record means: `````````````````````````````````````````` If ( $jtablegrid !=100 || $jtablegrid<100) { echo "something"; } ````````````````````````````````` Well you can simple write if ($jtablegrid <= 100) { echo ....; } Link to comment https://forums.phpfreaks.com/topic/116540-is-this-expression-correct/#findComment-599298 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.