Okay here's the deal. I'm working in a situation where my company is using vbscript during a phase of server side scripting.
One phase that occurs earlier than the vbscript prints variables directly into the vbscript. So we have something that looks like this:
If "<%some html code that will be inserted%>" <> "" ThenSomeVariable = SomeValue
End If The problem occurs when the code to be inserted spans multiple lines. For example:
<p>One paragraph.</p>
<p>Another paragraph.</p>
Will get inserted, causing the following vbscript to be executed:
If "<p>One paragraph.</p>
<p>Another paragraph.</p>" <> "" Thensome_variable = some_value
End If
Since the code is being printed in, it doesn't preserve the newline characters, causing an Unterminated string constant error.
Okay--now my question: is there anything in vbscript that is equivalent to python's triple quotes (""") that allow multiple lines to be treated as one single string?
ie (in python):
"""
This is one line.
This is another line.
But it's all part of the same string.
"""
I've been scouring google, and I haven't gotten anywhere, or maybe there's a term that I don't know that I haven't searched for.