Here is an example code to check if a stretch value for "hst test" has decreased by 20%. You can replace the stretch_value
variable with your own value and modify the percentage decrease as per your requirement.
main.m307 chars9 lines
In this script, we first define our current stretch_value
and the previous_value
of stretch_value
. We then use an if
statement to check if the current stretch_value
is less than or equal to 80% of the previous_value
. If it is, we print a message saying that the stretch value has decreased by 20%. If it is not, we print a message saying that the stretch value has not decreased by 20%.
gistlibby LogSnag