How to compare two strings with each other?

Hello,
I have modeled a formular which has a radio group and a button. Furthermore, I have one result state corresponding to each option in the radio group.
In order to determine which result state actually is to be reached I want to attach a condition to each flow to the result states that tests which option has been chosen.
Which operator can I use for writing these conditions? I have tried the "like" operator as well as the "==" operator but neither seems to work.
I have written something like:
=LIKE(@decision, 'option a')
as well as:
=(@decision=='option a')
What am I doing wrong here?
Thank you very much
Alexander

Hi Alexander,
Could this be an Upper/Lower case issue.
I tried the following expression
=(@TXT1=="opt a")
and it worked.
If you want your expression to ignore case you should use this expression:
=(UPPER(@TXT1)==UPPER("opt a"))
In case you're not sure what is the exact string in the field (@decision) you can always use the PROMPT action to display the field's value.
Regards,
Udi

Similar Messages

  • How to compare two strings whether both are equal while ignoring the difference in special characters (example: & vs & and many others)?

    I attempted to compare two strings whether they are equal or not. They should return true if both are equal.
    One string is based on Taxonomy's Term (i.e. Term.Name) whereas other string is based on String object.
    The problem is that both strings which seem equal return false instead of true. Both string values have different special characters though their special characters are & and &
    Snapshot of different design & same symbols:
    Is it due to different culture or language?
    How to compare two strings whether both are equal while ignoring the difference in special characters (& vs &)?

    Hi Jerioon,
    If you have a list of possible ambiguous characters the job is going to be easy and if (& vs &) are the only charracters in concern awesome.
    You can use the below solution.
    Before comparing pass the variables through a replace function to standarize the char set.
    $Var = Replace($Var,"&","&")
    This is going to make sure you don't end up with ambiguous characters failing the comparison and all the char are "&" in this case.
    Similar technique is used to ignore Character Cases 'a' vs. 'A'
    Regards,
    Satyajit
    Please “Vote As Helpful”
    if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Can anybody tell how to compare two documents with two pointers controlled with the same mouse

    can anybody tell how to compare two documents with two pointers controlled with the same mouse ??

    I saw what I need but in a game to find the differences between two photos (two screens, two pointers controlled by one mouse), and I need a program to make the same thing   (compare a chosen files)

  • Link two LRT224 with each other using VPN

    What's the best way to connect two LRT224 with each other, which are in two different citys?
    Open VPN or IPSec?
    I think Gateway to Gateway should be the right mode, but I am very unsure with the lot of settings ...
    Solved!
    Go to Solution.

    Try the EasyLink VPN feature of LRT214/LRT224, which simplifies the site-to-site VPN setup.
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=03cf456383fc4d958cf918110c7fcd42_How_to_configure_...
    EasyLink VPN works in the following way conceptually.
    1. At the primary site, enable EasyLink VPN Server (inbound tab on the Web GUI) and create an account (username/password) for each remote site.
    2. At a remote site, enable EasyLink VPN Client (outbound tab on the Web GUI), and enters the matching account credentials (username/password).
    3. The remote site will automatically reach out to the primary site to establish an IPsec tunnel.
    Note: LRT224 can support up to five EasyLink VPN peers in a star VPN topology.

  • How to Compare two strings in PL/SQL

    Hi All,
    I need to compare two strings whether they are equal or not in PL/SQL.Is there any function to comparing the strings.

    Yes, the = sign.
    Are you after something like:
    IF v_string1 = v_string2 THEN
    ELSE
    END IF;?
    Edited by: Boneist on 27-Aug-2009 11:41

  • How to compare German strings with umlaut

    hi
    here is a solution for the problem to compare German strings containing umlaut, which I faced and where I did not find any solution yet!
    The right thing is to use the RuleBasedCollator class and define the additional rules (concerning the umlaut) by yourself and setting the strength of the rule interpretation to PRIMARY!
    Here is the code that works:
    public class UmlautTest { 
    public static void main (String args[]) {    
    String st1 = "Daettenb�ck";
    String st2 = "D�ttenbueck";
    String myRule = "< ae,�,AE,� < oe,�,OE,� < ss,�,SS < ue,�,UE,�";
    RuleBasedCollator myrbCol = null;
    try {
    myrbCol = new RuleBasedCollator(myRule);
    } catch (ParseException e) {
    e.printStackTrace();
    myrbCol.setStrength(Collator.PRIMARY);
    if (myrbCol.compare(st1, st2) != 0) {
    System.out.println("myrbCol: NICHT gleich!");
    } else {
    System.out.println("myrbCol: Gleich!");
    I hope that I could help anyone with that
    nocomm

    The � should be of course replaced by the missing umlaut!
    Sorry, but I didn't preview the topic!
    nocomm

  • How to compare a string with integer in jsp

    I have a field in database called as enddate
    i m trying to split the entire date and get date,month and year
    once i store the date in a variable called as fmdate which is string,
    i need to compare it with another integer.
    how can i compare it..heres my code
    stdate=RS.getString("start_date");
         fmdate=stdate.substring(8,10);
         fmmonth=stdate.substring(5,7);
         fmyear=stdate.substring(0,4);
    and this is where i want to compare the value of j to fmday...
    <td class="btext" valign="center">Day<select name="fmday">
    <%
    for(int j=1;j<=31;j++)
    String s;
    parseInt(s)=j;
    if (fmdate.equals(s))
    %>
    <option value="<%=j%>"><%=j%></option>
    <% } else { %>
    <option value="<%=j%>"><%=j%></option>
    <%
    } %>
    </select>
    pl help me...
    Thanks Srini

    j is an int, so you're just adding 0, not concatenating. Perhaps something like this would work.
    <%
      for(int j=1;j<=31;j++)
         String date = String.valueOf(j);
         if(j <= 9) {
            date = 0 + date;
         if (fmdate.equals(date)) {
    %>
      <option value="<%=date%>"><%=date%></option>
    <%
         } else {
    %>
      <option value="<%=date%>"><%=date%></option>
    <%
    %>Uhm, I assume there should be a 'selected' or something in one of the option tags?

  • Parallelly scrolling two list with each other.

    Hi All,
    I am new in windows phone 8 development. MY issue is i want to scroll two list simultaneously with other. Means if i scroll first list then other list should be scroll parallelly with first list ,so that we can display data of same index of both list parallelly.
    How can achieve this in windows phone 8.
    In Android and Iphone they are able to do this features. 
    Please help me.
    Thanks in advance.

    Thanks Vineet for your response.
    Can you please show me your xaml code where i have to put scrollviewer in listbox. I am unable to scroll second list with first list. My xaml code is below for first listbox.
    <ListBox Grid.Row="1" Background="#1D1C1A" Name="lstChannelList" VerticalAlignment="Top" ItemsSource="{Binding}"
    ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionChanged="lstChannelList_SelectionChanged" LayoutUpdated="lstChannelList_LayoutUpdated" >
    <ListBox.ItemTemplate>
    <DataTemplate>
    <ScrollViewer VerticalAlignment="Top" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" >
    <StackPanel Orientation="Horizontal">
    <Grid Margin="0,0,3,0" Grid.Row="0" Background="{Binding color}" >
    <Grid.RowDefinitions>
    <RowDefinition Height="60"/>
    <RowDefinition Height="5"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="50"/>
    <ColumnDefinition Width="10*"/>
    </Grid.ColumnDefinitions>
    <TextBlock VerticalAlignment="Center" Grid.Row="0" Grid.Column="0" Text="{Binding number}" Foreground="{Binding forcolor}" FontWeight="Bold"/>
    <TextBlock VerticalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="{Binding channel_name}" Foreground="White" HorizontalAlignment="Left"/>
    <StackPanel Grid.Row="1" Grid.ColumnSpan="2" Background="Gray" Width="800" Height="3"/>
    </Grid>
    </StackPanel>
    </ScrollViewer>
    </DataTemplate>
    </ListBox.ItemTemplate>
    <ListBox.ItemContainerStyle>
    <Style TargetType="ListBoxItem">
    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    </ListBox.ItemContainerStyle>
    </ListBox>
    and second list xaml are below.second list data are static.
    <ListBox Grid.Row="1" Background="#1D1C1A" Name="lstChannel" VerticalAlignment="Top" ItemsSource="{Binding}"
    ScrollViewer.VerticalScrollBarVisibility="Visible" >
    <ListBox.ItemTemplate>
    <DataTemplate>
    <ScrollViewer VerticalAlignment="Top" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" Width="480">
    <StackPanel Orientation="Vertical">
    <Grid Margin="0,0,3,0" Grid.Row="0" Background="{Binding forcolorside}">
    <Grid.RowDefinitions>
    <RowDefinition Height="60"/>
    <RowDefinition Height="5"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="3"/>
    <ColumnDefinition Width="1*"/>
    <ColumnDefinition Width="3"/>
    <ColumnDefinition Width="1*"/>
    <ColumnDefinition Width="3"/>
    <ColumnDefinition Width="1*"/>
    <ColumnDefinition Width="3"/>
    <ColumnDefinition Width="1*"/>
    <ColumnDefinition Width="3"/>
    <ColumnDefinition Width="1*"/>
    <ColumnDefinition Width="3"/>
    <ColumnDefinition Width="1*"/>
    <ColumnDefinition Width="3"/>
    </Grid.ColumnDefinitions>
    <StackPanel Background="Gray" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" Width="3" />
    <Grid Grid.Row="0" Grid.Column="1" Background="{Binding forcolorside}">
    <TextBlock VerticalAlignment="Center" Text="Pluto pick's 2014" Foreground="White" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
    </Grid>
    <StackPanel Background="Gray" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right" Width="3" />
    <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="3" Background="{Binding forcolorside}">
    <TextBlock VerticalAlignment="Center" Text="Pluto pick's 2014" Foreground="White" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
    </StackPanel>
    <StackPanel Background="Gray" Grid.Row="0" Grid.Column="4" HorizontalAlignment="Right" Width="3" />
    <Grid Grid.Row="0" Grid.Column="5" Background="{Binding forcolorside}">
    <TextBlock VerticalAlignment="Center" Text="Pluto pick's 2014" Foreground="White" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
    </Grid>
    <StackPanel Background="Gray" Grid.Row="0" Grid.Column="6" HorizontalAlignment="Right" Width="3" />
    <Grid Grid.Row="0" Grid.Column="7" Background="{Binding forcolorside}">
    <TextBlock VerticalAlignment="Center" Text="Pluto pick's 2014" Foreground="White" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
    </Grid>
    <Grid Background="Gray" Grid.Row="0" Grid.Column="8" HorizontalAlignment="Right" Width="3" />
    <Grid Grid.Row="0" Grid.Column="9" Background="{Binding forcolorside}">
    <TextBlock VerticalAlignment="Center" Text="Pluto pick's 2014" Foreground="White" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
    </Grid>
    <Grid Background="Gray" Grid.Row="0" Grid.Column="10" HorizontalAlignment="Right" Width="3" />
    <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="11" Background="{Binding forcolorside}">
    <TextBlock VerticalAlignment="Center" Text="Pluto pick's 2014" Foreground="White" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
    </StackPanel>
    <Grid Background="Gray" Grid.Row="0" Grid.Column="12" HorizontalAlignment="Right" Width="3" />
    <StackPanel Grid.Row="1" Grid.ColumnSpan="13" Background="Gray" Width="500" Height="3"/>
    </Grid>
    </StackPanel>
    </ScrollViewer>
    </DataTemplate>
    </ListBox.ItemTemplate>
    <ListBox.ItemContainerStyle>
    <Style TargetType="ListBoxItem">
    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    </ListBox.ItemContainerStyle>
    </ListBox>
    Both list have six rows. and second list i am displaying above first list. So i want to parallelly rotate item of both list if any list scrolling. Please show me your XAML.
    I am unable to scroll second list if first list is scrolling above.
    Thanks once again vineet.

  • How to Compare Two Strng without .equals() method

    Hiii,
    How to compare two Strings with out .equals method if there are white spaces in between these string it should be avoided..
    eg: ab cd ef g is equal to a bc de fg
    Please give me the logic or code..
    Your help will be appreciated

    dude find the code without the equal method
    public class test {     
         public static void main(String args[])
              String str = "ab cd ef g" ;
              String str1 = "a bc de fg";
              char []ch = str.toCharArray();
              char []ch1 = str1.toCharArray();
              int counter =0, counter1 = 0;
              while(counter < ch.length && counter1 < ch1.length)
                   while(ch[counter]==' ')
                        counter++;
                   while(ch1[counter1]==' ')
                        counter1++;
                   if(ch[counter] != ch1[counter1])
                        break;
                   counter++; counter1++;
              if(counter == ch.length && counter1 == ch1.length)
                   System.out.println("true");
              else
                   System.out.println("false");
    }

  • For WRT1900AC, how do the 4 antennae work with each other?

    I am curious how the 4 antennae work with each other.  Does a wifi client need to communicate with all 4 antennae?  Or just 1 (or 2)?  I am curious, as I would like to move 1 or 2 of the antennae via proper cable to expand the coverage area.  

    bigdave240 wrote:
    spec on that cable is 10.8dB per 100 feet. I would think that the router would still have a problem with that. Not sure how long the OP was going to make it but with the beaming technology i would think it would throw it off balance.
    My maximum is 60ft when using LMR400 for standard wireless applications. I have done that many many times.
    These days they typically integrate the higher gain antenna right into the bridge housing or mount the outdoor bridge right next to the antenna.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

  • Both can connect to test sites but not videochat with each other

    I am using a 2GHz PPC iMac on 10.4.6 with external iSight. I can see the Apple ad from one of the test sites. My wife is using a G4 PowerBook running the latest Panther OS with external iSight. She is in a hotel but can also see the Apple ad from the test site. When she was home, we could videochat over Bonjour.
    But, while she is in the hotel out of town, we couldn't videochat with each other. Whether one initiated or the other did, we both get the "XXX failed to respond" message even though we obviously did accept the videocall.
    If we both can videochat with the test sites, how come we cannot videochat with each other?
    Given the above, I hope some experts can rule out a bunch of stuff and let me know the finite (and small) set of potential reasons affecting our situation so that I can work on resolving this efficiently.
    What could be the likely problem?
    On my side, I use an Apple AEBS that uses DHCP and NAT but my iMac is manually set to 10.0.1.201. I have set the ports in Firewall but even when I turned off Firewall it did not work.
    Any help is much appreciated.

    Hi Heng-Yee Yong,
    The test sites are most likely set to have the ports open by UPnP which does not use NAT.
    If you modem is routing and is using Port Forwarding and the Airport is as well then you have two lots of NAT going on at your end.
    I would Open Airport Admin Utilty (Applications/Utilities) and log on to the Airport
    Go to the Network tab.
    Deselect Distributing Addresses which wll trun off NAT in the Airport and make it a Wireless access device.
    This means your computer will have to take an IP form the Modem.
    This may not be rquired if the modem id is Bridge mode itself as this measn it is not routing and all port will be open without the use of NAT.
    This App can help identify if NAT is a problem
    http://bleu.west.spy.net/~dustin/projects/natcheck.xtp
    Or at least whether you have Consistent NAT or not.
    8:50 PM Wednesday; April 26, 2006

  • URGENT! I need to compare a String with a line in a .txt file

    I'm a college student and I have a very simple question i guess. I need to write an if procedure which compares if a line of a .txt file is equal to something, but I just don't know how to do it. HELP!

    What specifically are you asking for? How to compare two strings?
    String s = "cat";
    String t = "Cat";
    if (s.equals(t))
       System.out.println('They are equal');    // does not print out
    if (s.equalsIgnoreCase(t))
       System.out.println('They are equal');    // prints out

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • How do I enable two wireless clients to communicate with each other?

    I have a WRT54GL with the latest firmware.  I have two computers which are both connected to the router, with IP addresses assigned via DHCP.  Neither has a firewall running.  I cannot get them to communicate with each other -- even ping doesn't work.  I can ping the router itself using the IP address assigned to it on the WAN side by my ISP.   Both computers have no problem reaching the internet through the router.
    What settings on the router will enable the communication to occur?  I can't find anything in the router's user interface which appears to control this. 
    Thanks.
    Solved!
    Go to Solution.

    Hi annie25,
    I think it would be best to check on netgear or belkin technical forums how to make these two talk. 
    Yesterday is history. Tomorrow is mystery. Today is a gift.

  • Hello , I have a shot with two lips kissing each other , how can I keep

    Hello , I have a shot with two lips kissing each other , how can I keep the lips red and turn the rest of the face into black ? I tried shaping but the result was negative because the shape was moving all teh time , I tried color correction but the face and lips`s color was similar so I couldn`t do it with that , is there any other way ? Thanks so much

    You're gonna have fun with this because the HSL qualifiers probably won't see much separation between the areas that you want to isolate. You could try combinations of turning off Hue, Saturation, or Luminance. See what you get.
    Otherwise you're into a roto. (Manually tracked and animated User Shape)
    jPo
    Message was edited by: JP Owens

Maybe you are looking for

  • HP Envy 5660 - Installation issues

    Hello, I just bought the HP ENVY 5660 printer and I can`t proceed with the installation because the touchscreen doen`t show anything. After unboxing, removing all packaging labels and connecting to the power supply the touchscreen does not show anyth

  • Help in personalizations required

    Hi , I am very new to Oracle apps and I have following requirements in personalization.. please help. Need to make void reason mandatory in payments form and Printer name should be defaulted for Check Payments

  • Condition Classification - Changed

    Hi All, I have created a PO and posting of excise invoice is also done. Now I have changed "TAX CONDITION CLASSIFICATIONS" in SPRO as shown below (tax settings for India) I have added the following condition types (AFTER POSTING THE EXCISE INVOICE) i

  • Satellite Pro L850-1P8 PSKG7E - Unable to see any BT devices

    Hi I have a Satellite Pro L850-1P8 PSKG7E- 00C002EN. I initially had a problem with the software recognizing the hardware. Resolved by re-installing the Atheros filter driver. Now everything say it is working and the latest drivers are installed. I h

  • User Events in TestStand

    Hello, I'm trying to use the "Single Pass" button to trigger an event in a standard Event Structure but it will not register (see the event). Can't figure out why. Any ideas?? Thanks.