Check if user is a logged in member then check if boolean = true on click

I think the button is in a repeater ???

If the button is in a repeater, first of all connect the repeater to the respective dataset…
then →

#repeater1 - repeater

$w.onReady(function () {
 $w("#repeater1").onItemReady( ($item, itemData, index) => {
  if(wixUsers.currentUser.loggedIn) {
   if(itemData.aprooveMember === true) {
    $item('#Information').enable();
    $item('#reviews').disable();
    $item('#sectionInformation').collapse();
    $item('#sectionReviews').expand();
    $item('#line569').hide();
    $item('#line570').show();
   }
    else {
     wixWindow.openLightbox("AccountUnverified");
    }
  }
   else {
    wixUsers.promptLogin();
   }
  
 });
});