Jump to content

quick question about SPRINT/OUTER_TEXT_SPRINT


subtledoctor

Recommended Posts

Posted

Can it be used in an additive way to build a long string from numerous elements?

 

 

SPRINT variable ~Hello~
SPRINT variable ~%variable% there,~
SPRINT variable ~%variable% good~
SPRINT variable ~%variable% sir!~
PRINT %variable%

 

Will that print ~Hello there, good sir!~ ?

Posted

No, because that code won't parse. Secondly, it will print "variable" because %variable% is the string literal "variable".

In the general sense, (OUTER_)SPRINT works like that, yes.

Posted

Yeah I know that was only psuedocode, but you get the idea. Thanks.

 

For posterity, is the parsing error because it should be:

SPRINT ~variable~ ~Hello~
SPRINT ~variable~ ~%variable% there,~
...?
Posted

The parsing error is because SPRINT is a patch and PRINT is an action.

 

If you combined SPRINT with PATCH_PRINT or OUTER_SPRINT with PRINT, you'd be okay.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...