Skip to content

Commit

Permalink
Fix valueEquals bug
Browse files Browse the repository at this point in the history
  • Loading branch information
danielruss committed Jan 18, 2024
1 parent f0f31ee commit 6c11488
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ export const myFunctions = {
// if id is not passed in return FALSE
if (math.doesNotExist(id)) return false;
let element_value = math._value(id);

// catch if we have a combobox...
if (element_value[id]) {
element_value = element_value[id]
}

// if the element does not exist return FALSE
return (element_value == value)
},
Expand Down

0 comments on commit 6c11488

Please sign in to comment.