+ 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
8 Answers
+ 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.
+ 5
yup!
that's what m I saying
+ 4
if it's like
if(1)
{
}
then it's a tautology
and if it's
if(0)
{
}
then it's a falacy
+ 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
+ 3
thats correct. any statement without an argument or else statement is always true. like if (x) is true.
+ 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.
+ 1
so if u type 1 to the if statement then its true? and 0 for false?
+ 1
Đ¶ĐŸĐżĐ°