Is there a way to execute a line of code only if multiple statements are false?
I have an inventory:
[code]inventory = {
{“Images/Category 1/pistol1.png”, false},
{“Images/Category 1/machinePistol1.png”, false},
{“Images/Category 2/shotgun1.png”, false},
{“Images/Category 2/assaultRifle1.png”, false},
{“Images/Category 3/sniperRifle1.png”, false},
{“Images/Category 3/rocketLauncher1.png”, false}
}[/code]
And I’d like to write a function that executes a line of code if all those statements are false. [import]uid: 200198 topic_id: 35037 reply_id: 335037[/import]