Help with Java and ...
 
Notifications
Clear all

Help with Java and "return img"

1 Posts
1 Users
0 Reactions
203 Views
(@borrer0)
Active Member
Joined: 1 year ago
Posts: 2
Topic starter  
Hello.
I need help creating javascript code. I will try to tell you a simplified example and see if someone can show me what the code would be like and use it as a template.
To start, let's say I have 4 images uploaded to Dash Studio, (img1.jpg; imag2.jpg;..etc).... and two variables, for example speed and current gear.
 
Now, in my Dash editor I place an IMAGE item... and in said item in its "image" section I put a function in Java language that does the following:
 
If the speed is between 20 and 50 miles per hour, and at the same time, the current gear is between second and fifth, then it will show the image "img1.jpg"..but if on the other hand, the speed is between 80 and 90 miles per hour and the current gear is between fifth and eighth gear, then the image "img2.jpg" is displayed...and so on to end up showing one of the 4 images depending on whether one condition or another is met.
 
I clarify just in case that these variables have nothing to do with the really final ones... actually my objective is about coordinates in the Eurotruck
 
 
sorry for my english

 
 

thanks

 
 
 
This topic was modified 2 months ago by Borrer0

   
Quote
Share: