Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

godot if var is a string

Plat00n answered on May 10, 2023 Popularity 3/10 Helpfulness 8/10

Contents


More Related Answers

  • how to find if something is colliding in godot
  • godot print string and variable
  • godot declare variable type
  • godot var := x
  • check if node exists godot
  • check is string is number godot
  • check string on substring godot
  • How to make a global var in godot
  • godot static variables
  • how to get var value by name godot
  • check variable type godot
  • variable in GODOT GDScript

  • godot if var is a string

    1

    Godot has a function called "typeof" that returns the type of the variable. Here is an example of how to use it:

    Here is a list with all types typeof() can return:

    https://docs.godotengine.org/en/stable/classes/class_@globalscope.html#enum-globalscope-variant-type

    Popularity 3/10 Helpfulness 8/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on May 10 2023
    Plat00n
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.