lundi 15 février 2021

Can I use conditional operator in if condition from remote database or JSON in Java

I want to show data from remote in Java, but I want to use the conditional operator in PHP end database with JSON output e.g

I want to write

if(position % 2 == 0){
    System.out.println("Hello World");
}

into this format or any simple way

if(position $2 phpapi.getOperator() 0)

can I use/get the conditional operator " == " from remote end API and use it in the "if condition". I just want to add a conditional operator in the PHP end database. or tell me any best way to get a conditional operator from the backend php panel.

Aucun commentaire:

Enregistrer un commentaire