Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » userLevel

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

userLevel

set [the] userLevel to posInteger

where posInteger is 1, 2, 3, 4, or 5.

The userLevel property returns or sets the user level as follows:

1 = Browsing
2 = Typing
3 = Painting
4 = Authoring
5 = Scripting

HyperCard determines the default setting for userLevel from the Preferences card of the Home stack at startup and when HyperCard resumes after being suspended.

Examples

set the userLevel to 5
if the userLevel < 4 then ...
-- Save and restore the user level:
put the userLevel into savedUserLevel
set the userLevel to 5
... -- do stuff here
set the userLevel to savedUserLevel

Demo Script

on whatUserLevel
answer "The current user level is:" && the userLevel
end whatUserLevel

Related Topics

Placeholders

posInteger

An expression that evaluates to a positive integer.

For example:

3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2

See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View