Breaking News: Grepper is joining 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


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


    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:

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


    Continue with Google

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

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