- Posts: 31
.net String.Contains Method
- Joe
- Topic Author
- Offline
- User
Less
More
7 years 9 months ago #3142
by Joe
.net String.Contains Method - Post(3142) was created by Joe
I am not familiar with .net syntax. Can anyone supply an example of a .net script to use in the .net heater?
I need to search an input string for "My text" and return true or false.
I need to search an input string for "My text" and return true or false.
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
7 years 9 months ago #3145
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic .net String.Contains Method - Post(3145)
Hi Joe,
To check whether a string contains another one it´s not necessary to use the .NET Script Heater . You can to this also with the String Replace Heater with simple setting like the screenshot below.
Nevertheless I´ve attached a brief example for you with two additional ways. First do this with the String Replace Heater and second by a short C# .NET Script using InString().
String Replace Heater settings
To check whether a string contains another one it´s not necessary to use the .NET Script Heater . You can to this also with the String Replace Heater with simple setting like the screenshot below.
Nevertheless I´ve attached a brief example for you with two additional ways. First do this with the String Replace Heater and second by a short C# .NET Script using InString().
String Replace Heater settings
Best wishes
Robert Stark
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.259 seconds