For general Flowcode discussion that does not belong in the other sections.
-
jgu1
- Posts: 908
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 801 times
- Been thanked: 200 times
Post
by jgu1 »
Hi all!
Inside an If decision I can write: String_One = String_Two, it working.
In Built_in_funktion fs is the CompareS( ), how do I use this in an If funktion I have test with CompareS( String_One, String_Two ) and more attemp?
I have seach in Wiki but can´t find examble and what is best
Thank´s
-
Attachments
-
- String_Compare.fcfx
- (7.63 KiB) Downloaded 14 times
-
BenR
- Matrix Staff
- Posts: 2154
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 584 times
- Been thanked: 768 times
Post
by BenR »
Hello,
The decision and the compare function both end up with similar c code.
To use the compare function you do this
Result = compare$(str1, str2, case)
Result is 0 if the strings match.
Case is 0 for case insensitive or 1 for case sensitive.
The new str1 = str2 in the decision allows for a shorthanded way of writing compare$(str1, str2, 1) == 0
-
jgu1
- Posts: 908
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 801 times
- Been thanked: 200 times
Post
by jgu1 »
Thank you Ben
