Skip to contents

Takes a UI element value and an older value and determines if it has been modified

Usage

has_updated(ui_val = NULL, old_val = NULL)

Arguments

ui_val

Current value from the UI.

old_val

Last value of of the element. defined.

Value

Boolean result of the comparison

Examples

changed_true  = has_updated(ui_val = "a", old_val = "")
changed_true
#> [1] TRUE
changed_false = has_updated(ui_val = "a", old_val = "a")
changed_false
#> [1] FALSE