Need to edit this post because I didn't word my question properly and asked the wrong thing
I'm designing a website, and I'm wondering if it's possible to have a block of text that displays different things based on a condition variable.
e.g. if users have different values for a variable through some previous action on a website -- and both users click the same "next" button to go to the next page. Based on that previous action, hypothetical user A will see different text than hypothetical user B, but they'll both be on the same page.
It will be the same HTML file for the page, but the content will be different depending on previous data. Is this possible?
Would I need to use js for this, or is it something simple that can be done with just HTML?
Any help would be appreciated, thanks!