14.01.2019, 15:56
Hi
Then create additional object Apply(bit) set it on visu to send fixed value 1 and create event based script under it.
Something like that should do
Then create additional object Apply(bit) set it on visu to send fixed value 1 and create event based script under it.
Something like that should do
Code:
coffeNo = grp.getvalue('7/7/7')
milk = grp.getvalue('7/7/8')
sugar = grp.getvalue('7/7/8')
milktext= ''
sugartext=''
apply = event.getvalue()
if (apply) then
if (milk) then
milktext = ' with milk'
if (sugar) then
sugartext = ' and sugar'
end
else
milktext = ' '
if (sugar) then
sugartext = ' and with sugar'
end
end
end
-- make sure mail settings are set in user function library before using this function
subject = 'E-mail test'
message = tostring(coffeNo)..milktext..sugartext..' Please'
mail('user@example.com', subject, message)
------------------------------
Ctrl+F5
Ctrl+F5