Tutorial for dynamic variable and conditional