Joy Online Manual
NAME |
objc:isValue - Check if a value is valid for a type |
SYNOPSIS |
objc:isValue value type
DESCRIPTION |
Checks if the the given Joy data type can accept the string value as a data value and returns 1 if it can, 0 if it can't. |
EXAMPLES |
joy> objc:isValue 3 int
1
joy> objc:isValue 3 float
1
joy> objc:isValue {1 2.0} NSPoint
1
joy> objc:isValue 3.0 int
0
joy> objc:isValue abc float
0
joy> objc:isValue {1 2.0 3} NSPoint
0
SEE ALSO |
KEYWORDS |
type, value |
Index |