If, Then, Else problems

Blitz3D Forums/Blitz3D Beginners Area/If, Then, Else problems

I helps to indent your code so you can visualize it better:
billy = 20 
sam = 10 


If billy = 10 
	If sam = 5 
		Text 0,130, "Sam and billy are 15 in total" 
	Else 
		If billy = 20 
			If sam = 10 
				Text 0,130, "same and billy are 30 in total" 
			Else 
				If billy = 50 
					If sam = 50 
						Text 0,130, "sam and billy are 100 in total" 
					EndIf 
				EndIf 
			EndIf 
		EndIf 
	EndIf 
EndIf 


What pjd said. :)