Jump to content

is this expression correct?


coder9

Recommended Posts

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

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 ....;

}

 

 

 

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.