[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 18 KB, 251x251, baby.jpg [View same] [iqdb] [saucenao] [google]
1719332 No.1719332 [Reply] [Original]

Console.WriteLine("Aether: I remember now, " & Name & ". Comon! We must hurry, we haven't much time.")
Console.WriteLine("Aether: What are you wearing?")
Console.ReadLine()
Console.WriteLine("Aether: No silly! I mean what armor are you wearing? Green, Red or Blue?")
Armor = Console.ReadLine()
If Armor = "Red" Then
Console.WriteLine("Aether: I see now! " & Armor & " suits you too! Quickly pick up your weapon and let's leave!")
End If
If Armor = "Green" Then
Console.WriteLine("Aether: I see now! " & Armor & " suits you too! Quickly pick up your weapon and let's leave!")
End If
If Armor = "Blue" Then
Console.WriteLine("Aether: I see now! " & Armor & " suits you too! Quickly pick up your weapon and let's leave!")
End If


NEED HELP WITH THIS STRING. HOW DO I PUT, IF NOT "GREEN", "RED" OR "BLUE", THEN " [this] "?????

>> No.1719343

Use "Else If" a lot:
If Armor = "Red" Then
...
Else If Armor = "Green" Then
...
Else If Armor = "Blue" Then
...
Else
...
End If

>> No.1719356

First, it's called 'else'
Second, What the fuck are you doing, nigger? That code is so wrong I almost went insane.

>> No.1719415

EXPLAIN IT CLEARLY CAUSE MY BRAIN IS FULL OF FUCK

>> No.1719448

What the fuck sort of nigger language is this?
And shouldn't it be If Armor == "Red"?