is this possible ?

Hi there,

I've got some variables that I want to write on one single line like this:
$test="test" $test2="test2" $test3="test3";

If I'm testing this I'm getting a error 500. If I test it with each variable on a different line it works fine but it takes up more drive space then. Is there anyway to put them on one single line without getting an error message ?
Who is Participating?
mattropeConnect With a Mentor Commented:
Just put a semicolon after each assignment:

$test="test"; $test2="test2"; $test3="test3";

The assignments are actually separate commands, so you need semicolons between them.
quickbasicAuthor Commented:
Why didn't I think of that ? Excellent, thanks...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.