Syntax1:
f condtion1 then statment
contoh:
if nilai_angka >=80 then nilai_huruf = "A"
syntax2:
If Condition1 then
statement
end if
contoh:
if nilai_angka >= 80 then
nilai_huruf = "A"
msgbox
"Selamat anda mendapat nilai akhir",_vbinformation, "informasi"
end if
nilai_huruf = "A"
msgbox
"Selamat anda mendapat nilai akhir",_vbinformation, "informasi"
end if
Syntax3
if condition1 then
statement
else
statement
end if
contoh:
if nilai_angka >= 80 then
nilai_huruf = "A"
msgbox "selamat Anda mendapatkan nilai terbaik",_vbinformation,"informasi"
else
msgbox "Anda harus belajar lebih baik lagi"_vbinformation,"informasi"
end if
about Cyber Information http://aboutcyberinformation.blogspot.com/nilai_huruf = "A"
msgbox "selamat Anda mendapatkan nilai terbaik",_vbinformation,"informasi"
else
msgbox "Anda harus belajar lebih baik lagi"_vbinformation,"informasi"
end if