+ 1

Is it true that if the function or if statements doesn't have an argument you just leave it blank?

if and else statements and also function

3rd Mar 2017, 4:03 AM
AsheEvelineRose
AsheEvelineRose - avatar
8 Antworten
+ 5
for user defined functions... yes u can leave it blank. for 'if' u'll have to specify a condition, any Boolean value... u can also write numeric 1 for true and 0 for false.
3rd Mar 2017, 4:06 AM
Ronit Kumar
Ronit Kumar - avatar
+ 5
yup! that's what m I saying
3rd Mar 2017, 4:14 AM
Ronit Kumar
Ronit Kumar - avatar
+ 4
if it's like if(1) { } then it's a tautology and if it's if(0) { } then it's a falacy
3rd Mar 2017, 4:09 AM
Ronit Kumar
Ronit Kumar - avatar
+ 3
u can leave the function parameters blank, "function name() {}" and about the if/else statements idk i've never tried to leave them blank but if u r going to leave them blank then you better dont use them so maybe you cant just use it like this "if () {}" but im not sure, told ya, never tried it... =D
3rd Mar 2017, 4:08 AM
Kawaii
Kawaii - avatar
+ 3
thats correct. any statement without an argument or else statement is always true. like if (x) is true.
3rd Mar 2017, 5:30 AM
Andre van Rensburg
Andre van Rensburg - avatar
+ 2
me either I'm still confuse of function,if,and else statements but I'm sure I will get it just gonna do a research but still thank you 4 ur answers guys.
3rd Mar 2017, 4:10 AM
AsheEvelineRose
AsheEvelineRose - avatar
+ 1
so if u type 1 to the if statement then its true? and 0 for false?
3rd Mar 2017, 4:13 AM
AsheEvelineRose
AsheEvelineRose - avatar
+ 1
жопа
6th Mar 2017, 8:43 AM
quietude