User tutorial
Developers
Apps
Pricing
Blog
Login
Sign up
Developers
Start here
How to
Built-in types
sjs-3
Injected variables
Collection
File
Attributes
attrInt32
attrStr
hasAttrInt32
hasAttrStr
listAttrInt32
listAttrStr
removeAttrInt32
removeAttrStr
Execution
Misc
Mutation
Properties
Traversal
os
util
accept-1
app-1
contextmenu-1
css-1
css-2
css-2-wrapper
html-1
image-1
markdown-1
sh-1
static-1
Tools
Filesystem
Apps
API
File.prototype.hasAttrInt32()
Reports whether file has given int32 attribute defined.
Syntax
file.hasAttrInt32(key string) boolean
Parameters
key string
Name of the attribute.
Examples
Basic example.
f = new File() f.attrInt32("score", 13) os.print(f.hasAttrInt32("score") + "\n") os.print(f.hasAttrInt32("undefined") + "\n")
Run