I assumed this was to show the field in the admin. acf/prepare_field is called just before the field is shown in the admin and can be used to not show a field by returning false. You register the field as normal than you create a filter and in the filter you check the value of the other field and then you return the field or FALSE depending on that check.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users