Can "so as to" be used, and if so in what contexts and in what situations? Can it be used formally and in written documents?
Edit: I'm looking more at an IT question for example "You can do 'something' so as to get the variable and process it"
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It only takes a minute to sign up.Sign up to join this community
This is a very broad question, but to give you a couple of examples:
He put on an elaborate ruse so as to deceive her.
She tried to look nonplussed so as to conceal her rage.
Yes you can use that phrasing formally in writing or speech, although personally, I wouldn't. It has limited applications.
EDIT: Yes, based on your edit, you can use that terminology in IT:
Ensure that the firewall is properly configured so as to prevent an attacker from infiltrating our network.