Bad usage of
IsNothing function[
^]!
IsNothing
returns a boolean value indicating whether an expression has no object assigned to it.
Try this:
Dim question As String
question = InputBox("Capital of Turkey?", "Question 2")
MsgBox "The answer is " & IIf(question = "Ankara", "", "not ") & "correct!"
Note: to be sure that one string is equal to another, you need to know that comparison depends on many factors, such as: site-code, big/small letters, etc.
I'd suggest to read this:
Comparison Operators in Visual Basic[
^]
StrComp Function (Visual Basic)[
^]