Skip to main content

1E 8.1 (on-premises)

NOCONTENT

Keywords

NOCONTENT

Purpose

Immediately terminate an instruction early with an exit code “Success, no content”.

Description

Syntax

//some statements
NOCONTENT;

NOCONTENT is an unconditional version of the EVALUATE keyword. Each causes an instruction to exit successfully, with an exit code of 1 meaning “Success, no content”, and do not return a message.

Examples

@users = Users.GetLoggedOnUsers();

// Return "success no content" if they are any logged in users
IF (@users)
    NOCONTENT;
ENDIF;

// ... otherwise do something which can only be done if no-one is logged on 

Notes

See SCALE User Guide: Exit Codes.