#VBA #Excel #IF
Sub Homework()
' Write If, Elseif, Else statement which will return the number (typed by the user) multiplied by 2, if the number was positive;
' opposite number, if user typed a negative number and 0, if the user typed 0
Dim Number As Long
Number = InputBox("Please give me a whole number")
'Your if statement goes below
End Sub
00:00 Wstęp
00:19 Do czego używać IF-ów
00:33 Konstrukcja IF
01:14 Przykład IF
03:27 Alternatywna konstrukcja IF
04:32 IF Else
05:32 Przykład IF Else
07:19 If ElseIf Else
08:15 Przykład IF ElseIf
10:55 Kolejność warunków
13:02 Zadanie domowe