Is there a way to make this more efficient? I find it a bit ugly. I want to verity if there is a next "deck", if so, execute some for it, until deck8
here is my code:
If deckNum > 0 Then
'Execute code for deck 1
If deckNum > 1 Then
'Execute code for deck 2
If deckNum > 2 Then
'Execute code for deck 3
If deckNum > 3 Then
'Execute code for deck 4
If deckNum > 4 Then
'Execute code for deck 5
If deckNum > 5 Then
'Execute code for deck 6
If deckNum > 6 Then
'Execute code for deck 7
If deckNum > 7 Then
'Execute code for deck 8
End If
End If
End If
End If
End If
End If
End If
End If
'Execute code for deck 1is it a 1 liner code or mulltiple lines? Also shouldn't your if be in reverse? i.e from 7 to 0 and not 0 to 7?