Quick question on syntax

Vonstorm

Member
Stupid question, how do I add an OR condition to an if statement?

EG:
//Make sure player has a radio
if (_hasRadio) then {

want to add "or if in a vehicle" to if "has radio"

(vehicles have radios :) )
Thanks in advance for any help.
 
Stupid question, how do I add an OR condition to an if statement?

EG:
//Make sure player has a radio
if (_hasRadio) then {

want to add "or if in a vehicle" to if "has radio"

(vehicles have radios :) )
Thanks in advance for any help.
Code:
if (_hasRadio || _inVehicle) then { // code here };
 
Back
Top