Skip to main content

GetValue

Reads .Value from a Seam state, or returns the input as-is.

TypeSinceScoped
Utility0.2.2No

Constructor​

GetValue(Input : any?) -> any?

Usage​

local MyValue = Value(5)

print(GetValue(MyValue)) -- 5
print(GetValue("Banana")) -- "Banana"
print(GetValue(nil)) -- nil

Safe when the input might be either a state or a plain value.