• Overview
    • delete()
    • get()
    • has()
    • put()
    • Overview
    • convert_date()
    • decode_b64()
    • decode_json()
    • encode_b64()
    • encode_json()
    • join()
    • keys()
    • length()
    • pairs()
    • perlin()
    • profile_expr()
    • rand()
    • range()
    • reset_seed()
    • simplex()
    • slice()
    • sort_key()
    • sort()
    • system_variable_get()
    • system_variable_set()
    • time()
    • undef()
    • unix_time()
    • values()
    • var()
    • vars()
    • Overview
    • all()
    • filter()
    • first()
    • map()
    • reduce()
    • Overview
    • abs()
    • acos()
    • acosh()
    • acot()
    • asin()
    • asinh()
    • atan()
    • atan2()
    • atanh()
    • ceil()
    • cos()
    • cosh()
    • cot()
    • coth()
    • csc()
    • csch()
    • deg()
    • fact()
    • floor()
    • ln()
    • ln1p()
    • log()
    • log10()
    • log1p()
    • mandelbrot()
    • max()
    • min()
    • rad()
    • relu()
    • round()
    • sec()
    • sech()
    • sin()
    • sinh()
    • sqrt()
    • tan()
    • tanh()
    • Overview
    • lower()
    • replace_first()
    • replace()
    • split()
    • title()
    • upper()
    • Overview
    • sleep()
    • synchronize()
    • task_completed()
    • task_count()
    • task_dock()
    • task_join()
    • task_thread()
    • task_value()
    • task()
    • Overview
    • copy()
    • type()
  1. Scarpet
  2. Built-ins
  3. Types
  4. type()

type()

View on GitHub

Syntax

type(expr)

Returns the string value indicating type of the expression. Possible outcomes are null, number, string, list, map, iterator, function, task, as well as minecraft related concepts like block, entity, nbt, text.

Found a problem with this page?

  • View the source on GitHub
  • Edit this page on GitHub