1

when I use the || in data-bind, it repeats the results when both are true, but separately work fine,

I tried in many ways and all give me the same and when I use with === no results return and without parentheses is the same result

<div data-bind="visible: (
  worktask.wbc_date == $root.FirstViewOnlyDate() || 
  worktask.wbc_date == null
)">
user3297291
  • 22,592
  • 4
  • 29
  • 45
Bakr
  • 11
  • 2
  • 1
    Please show us what you did - add a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example). – OfirD Mar 30 '20 at 13:52

1 Answers1

1

Considering that FirstViewOnlyDate is an observable, did you try:

visible: (
  !worktask.wbc_date() && 
   worktask.wbc_date !== $root.FirstViewOnlyDate()
)

?

Danielle
  • 3,324
  • 2
  • 18
  • 31