Skip to content

GetPathType

Anthony Headley edited this page Apr 25, 2020 · 1 revision

FunctionName(dataobject: target) : string

Brief:

⚠ Need more examples of proper paths ⚠

Paramiters:

Name Type Description Optional
target dataobject Gives the path type of a dataobject

Returns:

Type Description
string returns the path type.

Examples:

local cp = CurrentProfile()
local cu = CurrentUser()
local dp = DataPool()
local pr = Programmer()
Echo(GetPathType(cp)) -- user_profiles
Echo(GetPathType(cu)) -- config
Echo(GetPathType(dp)) -- export
Echo(GetPathType(pr)) -- export
Clone this wiki locally