send email with lamp hours every 100 hours

Hello,

I am trying to write code that will evaluate the value of a projector's lamp hours and send an email with lamp hour value every 100 hours.

So far I have two versions of the pseudo code

input lamp_hours
let a = first two digits of lamp hours from right
let b = all digits to left of a
if a = 00 && lamp_hours / b = 100
then send email with lamp_hours
else
do nothing

or

input = lamp_hours
if lamp_hours / 100 = whole number integer
then send email with lamp_hours
else
do nothing

the projector lamp hours can be input either as an analog value or a string value

I would appreciate any help in coding this
Last edited on
Topic archived. No new replies allowed.