[Command] setGlobalString

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

GlobalVariable.setGlobalString(String)


USE:
Same as setGlobal(), just string instead of float
Set (add if it doesn't already exist) a global variable to a certain String.


TYPE: Command, non-Ref (ref-like syntax)
RETURNS: /
THEME: Variables
COMPARE: setGlobal, clearGlobal


EXAMPLE:

Code: Select all

BusinessName = enterString()
rkGlobalVariable.setGlobalString(BusinessName)

"My Business Name is <BusinessName>"


On another files:
BizNam = rkGlobalVariable.getGlobalString()
"My Business Name is <BizNam>
Last edited by Raddeck on Mon Nov 28, 2022 9:58 pm, edited 1 time in total.
Reason: Added example
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply