I'd like to assign an HTP.PRINT statement to a variable to use in an IF/THEN statement. Does anyone know the proper way to do this? I want to assign something like HTML_V := MYHTMLCODE

Then I want to call that variable to print the HTML using HTP.PRINT in my IF/THEN clause... something like:

IF ORD_QTY_V IS NULL
THEN
ORD_QTY_V := REQ_QTY_V;
htp.print (HTML_V);
ELSE
BO_QTY_V := ORD_QTY_V - SHIP_QTY_V;
htp.print (HTML_V);

What's the proper syntax for passing the HTML into that variable? I'm sure I already have my IF/THEN correct (I think)...