Update Variable Based on Another Variable Having Data

I have a search field that links to my database and shows entries.

When a user clicks the entry it updates the variable selectedSchool

I want to show a div below, but only if the selectedSchool has data.

Hey,

I might be going about this completely the wrong way, but this is what I’m trying to do.

I tried doing it by setting the conditional rendering to selectedSchool, but the value seems to be {}, so the div still appears.

I created a boolean variable called isSchoolSelected and can get this div to show/hide when I manually update the variable value.

How can I get that when the user selects a school, isSchoolSelected changes to true and the div shows?