We have no idea what language are you speaking about. Because of the backslash thing and some syntactic elements I infer that it's some kind of shell scripting language. In bash, you would do:
if [ "$foo" = "1" ] && [ "$bar" = "2" ]; then echo we have a match; fi
And yes, the backslash can be used to escape the end of line so it doesn't get interpreted by your shell (and hence, the command continues on the next line).
Details might vary depending on the concrete shell language you use.