ProtoFlux:Compare Strings: Difference between revisions

From Resonite Wiki
create Compare Strings ProtoFlux Node Page
 
fix spacing
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:


Comapre Strings is a ProtoFlux node that allows you to tell the difference between two different strings as a whole number.
Comapre Strings is a ProtoFlux node that allows you to tell the difference between two different strings as a whole number.
The comparison used is based on [https://learn.microsoft.com/en-us/dotnet/standard/base-types/comparing Comparing Strings Microsoft]
The comparison used is based on [https://learn.microsoft.com/en-us/dotnet/api/system.string.compare?view=netframework-4.6.2 Comparing Strings Microsoft 4.6.2]


== Inputs ==
== Inputs ==
Line 38: Line 38:


== Examples ==  
== Examples ==  
<gallery widths=480px heights=480px>
<gallery widths=480px heights=480px>
File:Protoflux_example_Compare_Strings.webp|An example of comparing strings to tell if there's a difference between 2 text displays.
File:Protoflux_example_Compare_Strings.webp|An example of comparing strings to tell if there's a difference between 2 text displays.

Latest revision as of 22:43, 17 February 2024

Compare
A
*
B
ComparisonType
Strings

Comapre Strings is a ProtoFlux node that allows you to tell the difference between two different strings as a whole number. The comparison used is based on Comparing Strings Microsoft 4.6.2

Inputs

A (String)

The string to compare from.

B (String)

The string to compare to.

ComparisonType (StringComparison)

The string comparison to use.

Outputs

* (int)

The difference between the strings. can be positive or negative.

Examples