Agreement with ideological statements varied depending on social group content.
Competitive and dangerous world beliefs moderated participants' agreement.
Findings are in line with a functional theory of ideology.
Supports flexibility and context dependence of ideological attitudes