Difference between revisions of "ERR GENERIC"

From Second Life Wiki
Jump to navigation Jump to search
m
(Tired)
Line 2: Line 2:
|name=ERR_GENERIC
|name=ERR_GENERIC
|type=integer
|type=integer
|hvalue=0xFFFFFFFF
|value=-1
|desc=The meaning of this constant is context specific.
|desc=The meaning of this constant is context specific.
{{{!}} {{prettytable}}
{{{!}} {{prettytable}}
Line 18: Line 18:
{{!}} A nebulous and inexplicable error, nothing is known about it.
{{!}} A nebulous and inexplicable error, nothing is known about it.
{{!}}}
{{!}}}
|notes=LSL treats all non-zero integers as if they were TRUE when used as the condition in a conditional. If you want to test to make sure the value is not -1, you can do this by flipping all the bits. So <code>if(-1 != llSubStringIndex(...))</code> becomes <code>if(~llSubStringIndex(...))</code>.
|examples
|examples
|functions=
|functions=

Revision as of 02:35, 4 January 2014

Description

Constant: integer ERR_GENERIC = -1;

The integer constant ERR_GENERIC has the value -1

The meaning of this constant is context specific.

Function Indicates...
llSubStringIndex The requested string was not found in the source string.
llListFindList The requested list was not found in the list supplied.
llReturnObjectsByIDllReturnObjectsByOwner A nebulous and inexplicable error, nothing is known about it.

Related Articles

Notes

LSL treats all non-zero integers as if they were TRUE when used as the condition in a conditional. If you want to test to make sure the value is not -1, you can do this by flipping all the bits. So if(-1 != llSubStringIndex(...)) becomes if(~llSubStringIndex(...)).

Deep Notes

Search JIRA for related Issues

Signature

integer ERR_GENERIC = -1;

Haiku

The function did fail,
an error code returned,
without real meaning.