-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
How to continue a “For Each Value” Loop in FPScript?
- This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by Sven Wick.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
July 31, 2013 at 5:36 pm #12823Sven WickMember
Hi,
here is a snippet from one of our Python scripts,
which I would like to port to FPScript.... import fileinput for line in fileinput.input(): if not CURRENT_TEMP > RANGE_MIN and CURRENT_TEMP RANGE_MIN And CURRENT_TEMP < RANGE_MAX Then // Do nothing. Just get the next value End // ... End
July 31, 2013 at 5:36 pm #8480Sven WickMemberHi,
here is a snippet from one of our Python scripts,
which I would like to port to FPScript....
import fileinput
for line in fileinput.input():
if not CURRENT_TEMP > RANGE_MIN and CURRENT_TEMP < RANGE_MAX: continue ... [/code] It seems, there is no way in FPScript to just skip to the next iteration. I would like to do something like this: [code] For Each Value CURRENT_TEMP In Messdaten\T_MWE_2 Do If Not CURRENT_TEMP > RANGE_MIN And CURRENT_TEMP < RANGE_MAX Then // Do nothing. Just get the next value End // ... End [/code]
August 6, 2013 at 8:51 am #9295Bernhard KantzParticipantThe following code should work. But should avoid such loops and use the Event Isolation Analysis object.
Dim CURRENT_TEMP Dim RANGE_MIN = 600 Dim RANGE_MAX = 800 For Each Value CURRENT_TEMP In T_MWE_2 Do If Not (CURRENT_TEMP > RANGE_MIN And CURRENT_TEMP < RANGE_MAX) Then // Do nothing. Just get the next value End // ... End
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.