Use OR within if else condition by inverse condition order in php

前端 未结 2 1439
情歌与酒
情歌与酒 2021-01-29 15:55

I am trying to get \"OK\" if my condition False, i want to keep same if else order as given example, don\'t advice to move \"else\" content in \"if\" and \"if\" content in \"els

2条回答
  •  無奈伤痛
    2021-01-29 16:27

    I tested this code and it works.

    if(!($flag != 0 || $point >= 1000)){
        echo "Not OK";
    }else{
        echo "OK";
    }
    

提交回复
热议问题