Conditional data, 2 condition

QuestionsConditional data, 2 condition
Samsun asked 4 years ago

Mr Abu,

How to make conditional data with 2 conditions variable in phgrid, ex:
if (A > 10 && A < 20) ….

Regards,
Samsun

1 Answers
Abu Ghufran answered 4 years ago

For extended conditional data, you can also have callback function, that will allow you to display based on row data. For e.g.

$col["on_data_display"] = array("display_keyword","");

function display_keyword($data)
{
$kw = $data["keyword_name"];
$numKeywords = count(explode("n",$pass));
if ($numKeywords > 3)
return $numKeywords." Keywords";
else
{
$pass = str_replace("+"," ",$pass);
return $pass;
}
}

Your Answer

7 + 10 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!