Syntax

[the] type of <buttonFieldCardBackgroundWindowOrProject>

if the type of card part 1 is "button" then ...

Explanation

The type property allows you to query what type an object is. E.g for a button, it is “button”, no matter whether it is on a card or a background, or whether it is a pushbutton, checkbox, radio button or popup button.

See Also