Your resource for free IT tutorials, information and examples.
if name=='peter' ...elsif name=='john' ...end
I think it needs to be :if name == 'peter' puts nameelsif name == 'john' puts 'Superuser '+nameendWhat your trying to do is to set the name variable in an IF, not very good!.CodeJoust
sir.lain is right, it should be == and not =. I changed it.
Een reactie plaatsen
2 reacties:
I think it needs to be :if name == 'peter' puts nameelsif name == 'john' puts 'Superuser '+nameend
What your trying to do is to set the name variable in an IF, not very good!.
CodeJoust
sir.lain is right, it should be == and not =. I changed it.
Een reactie plaatsen