Syntax

[the] selectedLine of <button>

if line (the selectedLine of button 1) of button 1 is "Hyperspeed" then ...

Explanation

The selectedLine property tells you which line of a popup button is currently shown on the button.