input [motivation]
if [motivation] > 0 then
[success] = true
else
[success] = false
if [success] = false then
[motivation] = 0
input [motivation]
if [motivation] > 0 then
[success] = true
else
[success] = false
if [success] = false then
[motivation] = 0