how to know if advancedSearch is happend?

I Need to Check If user do AdvanceSearch ,something like => IsAdvancedSearch()

The function AdvancedSearchWhere() returns the advanced search where clause. You can check if it is empty to see if advanced search is used.