#i dont know, how to fix

1 messages · Page 1 of 1 (latest)

late zinc
#
const function Test(Input: "Made" | "by"): boolean
    return true
end

print(Test("testt"))
``` i made my own code "Made" and "by" is allowed only, i enter string testt that returns true, that fixable or not?
plain python
#

If type(Input) == "string" then end

#

The docs exist

#

Its 1 Google search

polar jasper
late zinc
# polar jasper This syntax (Input: "Made" | "by") is just type annotation. Which means it just ...
#

read

polar jasper
#

Sorry. Creator Hub gets auto translated to german in a weird way and I don't know how to not make it auto translate. Could you explain here again?

#

What exactly your trying to achieve I mean

simple lance
#

can someone help me with one of my profilestore module scripts. im trying to make it for my incremental game?

#

help me identify the mistake

late zinc
#

its template roblox devforum

polar jasper
late zinc
#

and u must fix

polar jasper
#

But we need to know what your trying to do. Do you want your function to return True when Input is "Made" or "By" or what are you trying to do?

late zinc
#

input == Made or by that return true

polar jasper
#

yes

#

so what is the problem

late zinc
polar jasper
#

You already have two solutions

late zinc
polar jasper