Objective:Code-switching is when bilingual individuals alternate between two languages in the same conversation. Some studies find that code-switching frequency is associated with executive functioning, while others do not. Individual attitudes towards bilingual language use and code-switching may explain the inconsistency in the literature. For instance, greater positive attitudes towards code-switching may be associated with more likelihood to engage in that practice and thus strengthen the cognitive benefit in executive function. Additionally, code-switching between English and Spanish has been stigmatized in the U.S., therefore it is unclear what sociocultural factors may predict positive attitudes. In this study, we assessed Latinx bilinguals’ attitudes on code-switching and investigated their relationship with code-switching frequency, sociodemographic and linguistic factors, and executive functioning.Participants and Methods:Participants were 525 community-dwelling English-Spanish bilingual Latinx adults from the Offspring study (Mage= 55.38 (10.42); Meducation= 12.62 (3.34); 71% women; 41% tested in English, 75% immigrant). A language history questionnaire assessed for bilingualism and code-switching frequency. Participants completed 7 questions on code-switching attitudes on a 7-point Likert scale ranging from Strongly Disagree to Strongly Agree (e.g., “switching between languages in a conversation is an important part of my identity”), that were summed for a total score with higher scores indicating more positive attitudes. Executive functioning was assessed with the NIH Toolbox Cognition battery, verbal fluencies, and the digit span test. Sociodemographic and linguistic factors included age, sex, education, immigrant status, parental years of education, English and Spanish proficiency (average score on self-reported ratings on speaking, reading, writing, and understanding), and testing language. General linear models evaluated the association of code-switching attitudes on executive function, after adjusting for relevant covariates.Results:Positive code-switching attitudes were correlated with greater code-switching, r(499)=.33, p<.001. Younger age r(499)=-.11, being born in the US t(493)=-2.05, greater English proficiency r(497)=.15, and English dominance t(499)=2.22, were associated with more positive code-switching attitudes (all p’s <.05). Sex, education, parental years of education, and Spanish proficiency were not associated with code-switching attitudes. Overall models of attitudes with executive function indicated that positive code-switching attitudes were associated with worse visual working memory (b = -0.08, t(169) = -2.75, 95% CI [0.14, -0.02]) after adjusting for age, sex, education, immigration status, parental years of education and testing language. Code-switching attitudes were not significantly associated with other executive function measures.Conclusions:Among a community-based sample of bilingual middle-aged Latinx adults, positive attitudes towards code-switching were associated with greater likelihood of code-switching in conversations, higher English proficiency, being US born, younger age, and English language dominance but negatively associated with visual working memory. These findings indicate that code-switching attitudes are influenced by sociodemographic and linguistic factors. Additionally, the negative association between code-switching attitudes and visual working memory provides support for previous studies showing code-switching as a disadvantage to cognition. Results of this study suggest that detailed characterization of sociocultural factors and aspects of bilingualism can provide further clarity in determining if there is a potential bilingual cognitive advantage. Future research should examine the relationship of code-switching with other aspects of bilingualism (e.g., age of acquisition).