If, Then, Else problems

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am trying a little go at NESTED IF's.

I have this

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

now if i edit sam and billy varible to higher like 20 for billy and sam 15 then nothing gets printed?

I basicly checked this over with the book I have and its basicly the same but slightly edited....
any help plz

I even tried doing

billy = billy +10
sam = sam +5
but still nowt text comes up stating their age....