CBATeam / CBA_A3

Community Base Addons for Arma 3
https://github.com/CBATeam/CBA_A3/wiki
GNU General Public License v2.0
364 stars 149 forks source link

function to convert numbers to boolean and vice versa (0 and 1) #1681

Open kiki727 opened 2 months ago

kiki727 commented 2 months ago

Mods (complete and add to the following information):

Description: A clear and concise description of what the bug is.

Steps to reproduce:

Expected behavior: A clear and concise description of what you expected to happen.

Where did the issue occur?

Log Files:

Additional context: Add any other context about the problem here.

Screenshots: If applicable, add screenshots to help explain your problem.

jokoho48 commented 2 months ago

Why would this need a function when you have more than enough ways to easily do this via mainly 1 script command?

parseNumber _bool;
_number == 1
_number isEqualTo 1
_number != 0
_number isNotEqualTo 0

also not a bug...