Previous
Previous
 
Next
Next


IS_EQUAL Function

This function returns TRUE if both values are equal and FALSE if not. If both values are NULL, TRUE is returned.

Syntax

APEX_PLUGIN_UTIL.IS_EQUAL (
    p_value1 IN VARCHAR2
    p_value2 IN VARCHAR2)
RETURN BOOLEAN;

Parameters

Table: IS_EQUAL Parameters describes the parameters available in the IS_EQUAL function.

IS_EQUAL Parameters

Parameter Description

p_value1

First value to compare.

p_value2

Second value to compare.


Return

Table: IS_EQUAL Return describes the return value by the function IS_EQUAL.

IS_EQUAL Return

Return Description

BOOLEAN

Returns TRUE if both values are equal or both values are NULL, otherwise it returns FALSE.


Example

In the following example, if the value in the database is different from what is entered, the code in the if statement is executed.

if NOT apex_plugin_util.is_equal(l_database_value, l_current_value) then
    -- value has changed, do something
    null;
end if;