VBScript quiz error -


i want create game html using vbscript. here code:

dim args args=inputbox("which correct... a: don't need html create webpage / b: html basics on creating website / c: need javascript on html / d: html programming language") if args = x=msgbox("you wrong! html 1 of languages used web developers",0+16,"wrong")  elseif args = b x=msgbox("you correct! html basics on creating website. can't use language without html",0+64,"correct")  elseif args = c x=msgbox("you wrong! answer might quite true others no. still need install use javascript codes. , don't need download html!",0+16,"wrong")  elseif args = d x=msgbox("you wrong! programming languages languages can use create programs. javascript.",0+16,"wrong")  else x=msgbox("answer not valid! or b or c or d",0+16,"invalid")  end if 

it says "answer not valid! or b or c or d" if placed a, b, c, or d.

why that?

to compare variable text, need quote text, this:

if args = "a" 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -