I have an app with a Gallery that shows the contends of a SharePoint List. I have buttons that allows the user to see Archived data and Active data. That has been working fine, but I am trying to add search functionality. I added a dopdown field to select the SharePoint List field to search in and a field to enter the search value. Here is a screenshot of what I have, including the code:

Pressing the Search button will set varGalleryFilter = 5 and my Gallery Items function includes the following code:
Filter(
Sort(
VehicleRegistration,
Created,
SortOrder.Descending
),
VehicleOnCampus = "Yes",
(Status = "New" && (varGalleryFilter = 1 || varGalleryFilter = 3)) ||
((Status="Rejected" || Status="Completed") && (varGalleryFilter = 2) ||
((varGalleryFilter = 5) & (dd_SearchField.Selected.Value="LicensePlateNumber" && LicensePlateNumber=lblSearchValue.Text) || (dd_SearchField.Selected.Value="RegistrantID" && RegistrantID=lblSearchValue.Text))
)
My SharePont List fields are LicensePlateNumber and RegistrantID. My dropdown field is dd_SearchField and the Label for entering the search value is lblSearchValue. It doesn't seem to understand lblSearchValue.Text and I am not sure if this is the best way to do this. Just looking for some help.