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
Post a Comment