[Solved] Querying a field from the current page. Surely I'm missing something

Well done! A good short code with good structured overview.
Perhaps to make it even more simple, you also could just use “black” and “yellow” to set your colors… like …

$w.onReady(() => {
  $w("#dynamicDataset").onReady(() => {
     let itemObj = $w("#dynamicDataset").getCurrentItem().creases;
     
     if(itemObj===true){$w("#box2").style.backgroundColor = "black";} 
     else{$w("#box2").style.backgroundColor = "yellow";}   
  });
});