NT_GetValueBoolean

Function NT_GetValueBoolean 

Source
pub unsafe extern "C" fn NT_GetValueBoolean(
    value: *const NT_Value,
    last_change: *mut u64,
    v_boolean: *mut bool,
) -> NT_Bool
Expand description

Returns the boolean from the NT_Value. If the NT_Value is null, or is assigned to a different type, returns 0.

§Parameters

  • value: NT_Value struct to get the boolean from.
  • last_change: Returns time in ms since the last change in the value.
  • v_boolean: Returns the boolean assigned to the name.

§Returns

1 if successful, or 0 if value is null or not a boolean.