How to write the story according to the options they choose

So now I have a question how you all writers make the story according to the choices they choose how will you all make it to affect the story based on choices

You should check out this:

mainly by using if/elif/else, labels/gotos, points, etc.