Several if check in 1 variable

Is there another way to code this? Comparing a variable (var1) multivalued.

{If (var1! = array [0] & & var1! = array [1] & & var1! = {array [2]})}

Is there another way to code that? As if (var1! = (array [0] & & table [1] & & array [2])) {}

I know that does not work, but y at - it another way to code?

If you check the table in its entirety, then you can use...

If (Array.IndexOf (var1) ==-1) End Sub

indexOf() checks if var1 in the table and is it not no returns-1, otherwise, it returns the index of the table that contains the value of var1

Tags: Adobe Animate

Similar Questions

  • Conditional statement advanced interaction checking if a variable is odd/even?

    Hello

    I was wondering if it is possible to have a conditional statement that checks if a variable is even or odd? I am using Captivate 5.

    Here's what I would do, and I know that I could do the same thing with the two sepaparate buttons, but I am curious to know if it is possible to do it with a button only.

    What I'm trying to do, is to give learners the ability to display some documents as a resource on their screen while they are listening for an example of an interaction with the customer. During this interaction some forms have to be filled, and I want learners to be able to display a before and after of the completed form, if they would like to see it.

    The easy way to build that according to me is to have a single button that would make the visible resource and the other button that hides the resource. I tried it and it works like a charm using standard measures.

    Since there are several resources that I want to put available for learners, with two buttons for each resource can clutter the slide a little, so I thought I'd try if I could create the same function using a button with a tip action.

    Whenever the learner clicks on the button for a resource, the variable associated with the resource is increased by 1. I would then have a conditional statement, saying: If the variable is odd-> see the resource, if the variable is same-> hide the resource.

    I can't find the option in the advanced actions to compare if a variable is even or odd. I can only find how to compare to a literal or another variable.

    Hello

    May I suggest another approach instead of odd/even?

    I would build a conditional action with 2 decisions. In the first decision, it of really a standard action (use IF 1 = 1, while it is still running), use this statement:

    Expression v_one = 1 - v_one

    v_one is the variable user for this button. It will always pass the value of this variable between 1 and 0. If the variable has no value assigned when set, first time user clicks it will get a value of 1, the second time the value 0.

    Second decision will be your cheque to condition:

    IF v_one = 1

    THEN hide resources

    ELSE to see the resource

    I hope you get the idea?

    Lilybiri

  • Check if the variable is null / not affected

    Hello

    I've been unable to find explicitly for an answer to the question how to check if a variable is null or Unassigned or not defined. As some analog to java fi (var == null).

    The variable in question is of type xsd: Integer. I use the assign activity where I use oraext:lookup - table. If the (integer) value is not found in the database, then the variable remains unaffected. However, I am of ideas of how to do to check if it's still not affected or not

    Thank you!

    To check if the value of a variable (in bpel) is null or empty, I think you can use this expression - bpws:getVariableData('variable') = "(just two quotes together), in a condition of switch-case / if-else.

  • How to check if the variable (of type uint) has a value or not?

    Hi all

    I'm just trying to write an instruction conditional to check if my uint variable has a value or not.  I tried to check "null" and "undefined", but without any luck (see below)

    private var _tempIndex:uint;

    ...

    ...

    If (_tempIndex! = null) {}

    code here

    }

    had an error with that one, then tried

    If (_tempIndex! = undefined) {}

    code here

    }

    had an error with that as well.

    So, how can I check if a variable has been assigned a value or not? Any ideas? Thanks in advance!

    Mike

    A uint always has a value between 0 and 2 ^ 32-1 inclusive. It cannot store a value 'no' as undefined or null. If you declare a variable of type uint without assigning a value, it is given a default value of 0.

    You need to maintain an indicator Boolean separate or to use a type of data larger such as number (which can store NaN), object (which can store NaN or null), or * (which can store a value, including NaN, null, and undefined).

    Gordon Smith

    Adobe Flex SDK team

  • JavaScript for one of several fields to set a variable/indicator

    I need help to create a script that will read in several areas, and if one of them meets a condition (say, 'Yes'), then Checkbox1 is checked.

    The pseudocode would be:

    If Field1 is Yes

    or if Field2 is Yes

    or if field3 is Yes

    or if Field4 is Yes

    then Checkbox1 = checked

    Thus, a 'yes', one of these fields generates the check in the box.

    The other part of it is if someone were to set fields 1-4 " Yes", then again on 'No', I need a script that checks all four fields and if they are all the 'no', then affects Checkbox1 unchecked.

    I can't code, but I know how do I change/add an existing script.  I really appreciate any help.

    Hello

    Maybe something like this JavaScript code in the case where the field check box, calculate

    If (Field1.rawValue == "N" & Field2.rawValue == "N" & Field3.rawValue == "N" & Field4.rawValue == 'No')

    {

    this.rawValue = "0";

    }

    on the other

    {

    If (Field1.rawValue == "Yes" |) Field2.RawValue == "Yes" | Field3.RawValue == "Yes" | Field4.RawValue is 'Yes')

    {

    this.rawValue = "1";

    }

    on the other

    {

    this.rawValue = "0";

    }

    }

  • The user select several shapes and assign the variable

    Hello

    I worked mainly Storyline articulate and now I'm back in Captivate 8 I really miss simplicity of the scenario

    I need to create a very simple interaction "select all the boxes." I want the text in boxes and the user to select as much as they wish (there are 10 in total) and that selected they should change their 'down' State, so it is obvious that they have enabled the box on and then a variable is assigned to show later in the course.

    I told the Action for the award of variable when the user clicks on but just slide forward and I can't select several options. Also, there is a pause on the button continue for the slide does not move on to the next.

    Can someone tell me how I can do this SIMPLE interaction quickly?

    A simple action will always be out of reading, replace it with a standard advanced action (can be a single line, but I think you will need more than one).

    Why choose Standard Simple action? -Captivate Blog

    It also has a link to a YouTube video.

    Keep with scenario then... for me it's very simple, but that's just me.

    What should be stored in the variable? The number of texts chosen? Or do you want a text variable and change this variable from 0 to 1 if the corresponding text is selected?

    Why not use the interaction of checkboxes? It's pretty simple to use, it will store the answers selected in the variables.

    If you explain better what you want to, have solutions for all situations.

  • How to check that the variable 'does not contain' value?

    Hello

    I use CP 7.0.1.237.

    We want to use the widget text box for a custom quiz and verify a response. While we understood how to check the existence of certain key words, we are not able to find a way to check that the content does NOT contain certain keywords. For example, we want to ensure that the text entered in this widget does not contain a "Transformation" and "Non-compliant.

    Is this possible at all?

    Thank you

    Anthony

    Anthony, it works perfectly. Created this conditional action with 4 decisions. I used the interaction of training text scrolling in CP8 (because now you can control the variable - which means I might have a Reset button):

    First decision:

    Second decision (the third is similar to the following)

    Fourth and final decision

    I put the variable words (v_first... v_fifth), it's a reflex I use since I shared actions that much. The variable associated to the ETB (you can now reset an empty var in CP8) is v_TextArea and the Boolean value that will decide if positive feedback (StarOK) should be shown is v_TA_OK. If you want to display a negative feedback, put this in the ELSE part of the final decision.

    FYI: it took 15 minutes, including the creation of assets and the variables and tests. Personally I would have needed more time to do it in JS, but that's just me.

    Lieve

  • How to check the Session Variables using the analytical web dashboard

    This is my first post. Easy points to the first right answer... If I can figure out how to give points.

    Problem: I need to know how to check that the Session Variables with the Administration of Oracle BI tool are used by the web analytics tool.

    Environment: Windows running Oracle 10g BI. Connect to the database using web analytics http:// < server >: 9704/analytics, web analytics is running in a windows Explorer browser.

    Current situation: the analytical tool is connected to the database and I can use the screen of "Answers" to the table edge to probe the tables look and things as expected.
    In the administration Oracle BI tool I can see the session of web analytics and I see that he thinks that the Session Variables are set correctly.
    I have reasons to doubt that the analytical tool is to get the right variables and I need to check it out.
    I know that I should use the 'Answer' window to create a shape any of a query that includes NQ_SESSION. < my variable >, but I can't understand what the format should be doing the work.

    That's all I need.

    What I do is insert a text in my dashboard object and then set the properties of the text object to display the variable.

    for example to display the DISPLAYNAME variable, the text object properties are:

    User: @{biServer.variables ['NQ_SESSION.]} {[DISPLAYNAME']}

  • Check if the variable exists

    Hello

    I'm just checking to see if a variable exisits to help:

    If (_root.displayCurrentvar.length > 0)

    is there a function I could use as isNull?

    Thank you

    If _root.displayCurrentvar is false, 0, undefined or null

    If (_root.displayCurrentVar)

    resolve to false.  otherwise, it is resolved to true.  then, use:

    //////////

    if(_root.displayCurrentvar || _root.displayCurrentvar==0) {}

    _root.changeStatus._visible = true;

    } else {}

    _root.changeStatus._visible = false;

    }

    ////////

  • Check if the Variable is instantiated

    How can I check if a function variable is instantiated? I have the following text in a custom component:

    [Bindable]
    public var selectionFunction:Function;
    

    Now I want to check when running if something has assigned summer in the selectionFunction variable, i.e. If it was instantiated with a function. The following methods have failed me so far:

    if (this.selectionFunction is Function)     //failure, type error #1009
    
    if (this["selectionFunction"] is Function)  //failure, type error #1009
    
    if (this.selectionFunction != null)         //failure, type error #1009
    
    if ("selectionFunction" in this)            //failure, type error #1009
    

    Any ideas on how to achieve this running?

    Thank you!

    -Mike

    Hello

    You can check by this method

    trace(String(selectionFunction)=="null")
    
  • How to check if a variable is loaded from php * Urgent please

    in a frame before im loading variables I have check the debugger and its participates with success. But for some reason when I goto test 'IF' the variable he returned constantly as 'CLEARED' in the debugger, even when the variable has not yet been loaded... I can not understand at all...

    trace (_level0. FID);
    If (_level0. IDF is "undefined")
    {
    trace ("UNCLEARED");
    }
    on the other
    {
    trace ("cleared");
    }





    and here is a view of debugging to run:

    Waiting for player to connect...
    Remote Flash Player: xx
    undefined
    DELETED
    undefined
    DELETED
    undefined
    DELETED
    test. FLV
    DELETED
    test. FLV
    DELETED

    don't put indefinite not in quotes.

  • I have CS6 and creative cloud.  I get an error code when you download an update to the CS6.   have tried several times, checked to see if Safari has been opened, the download stops at 50%...then starts again and 100% and then I get error c

    Update for CS6 has a problem downloading... U44M1P7 ON MAC PHOTOSHOP.  I checked to see that Safari did not work, I plugged the Macbook Pro, and I tried for two days to make it work.  Download slows down to 50%, then continues up to 100% before giving the error U44M1P7.  Any suggestions?  I have CS6 and creative Cloud applications.

    Hello

    Please see Installation failed. Error U44M1P7 | Updates

    Hope that helps!

    Kind regards

    Sheena

  • Check if a variable type is Object [] and only Object []!

    Hi all!

    Maybe that's a newbee question but a similar situation never happened to me before!

    I have a method that accepts an object [] parameter.
    But the peculiarity of the method, it's that I need to check if the type of the given parameter actually is Object [] only !

    Say that any other type of table must return false after checking... as a String [], [number] or something else...

    For what I know "* instanceof Object [] * ' always returns true , because all classified inheredit of the object (except the table of primitives, which actually cannot be passed as an argument here).
    So, how do I get false if the type of the given parameter is not exactly "* Object []?"

    Patcha wrote:
    (What is it?)

    A sound that I would express when I'm confronted with a question, I have not yet met before :) The lack of verbal contact, I am trying to communicate through the written word. Wrong, I might add.
    >

    private String method(Object[] o) {
         return o.getClass().getSimpleName();
    }
    
    System.out.println(method(new String[]));
    

    This would mean 'Object []' or 'String [] '? I'm not sure.

    Yes. But it was my first crack at it until I realized the best solution.
    >

    or check the class itself of course.

    array.getClass () .equals (Object [] .class); >
    This seems more comfrotable... I should test.

    I did, it works ;)

    But in fact, maybe I'll use another approach to logic in the mothod (which is not the one I posted as an example).
    So perhaps I should not more control of the object [].

    Excellent, if you can avoid having to carry out inspections of type I would certainly go for it.

  • Check if the variable is in the Recordset

    I have a Recordset queryparam in my page (let's call it rs_authorized), and I have a form submitted value (let's call it form.county).  I want to make a statement < cfif > based on the variable either or not in the recordset object.

    I tried...

    < #form.county # cfif EQ < rs_authorized.county_name # >

    but he acknowledges that if the first value of the Recordset.

    I tried...

    < Cfif ListFind(#rs_authorized.county_name#,#form.county#) >

    But even once, he acknowledges that if the first value of the Recordset.

    I tried...

    < #form.county # cfif IN (#rs_authorized.county_name #) >

    but I get an error saying that it does not recognize the word 'IN '.

    Any ideas?

    Depending on what exactly you're trying to do here, you might have to take one or more of the following:

    (1) use a full qualified reference of queryName.column.rowrecord set:

    I.E.

    #rs_quthorized.county_name [2] #.

    (2) loop through the recordset object to search for all lines.  or buildings do it is rather easy to do, but nothing prevents you from using any mechinism looping you care to use.

    (3) use the valueList (queryName.column) to put all the date of a column in the folder defined in a list.  This, combined with the listFind() or listContains() function will allow you to quickly search for a unique value.

  • Try to resize C:\ on preproduction servers that are less than 59 GB using several Where-Object checks

    Hi people

    Im trying to increase all disks C:\ of different sizes for a uniform 60 GB.

    I found a thread in this community that attempts to automate it as follows:

    Get-hard drive - vm "my VM | where {$_.} Name - eq 'disk 1'} | Together-hard drive - CapacityGB 60 - ResizeGuestPartition-confirm: $false

    To confirm, the command works but the ResizeGuestPartition does not work, so I need to automate this later.

    For now the key is to get this working and it does not appear:

    Get-VM-Tag "preproduction" | Where-Object {$_.} Guest.OSFullName - like ' * Windows Server * "- and $_. PowerState - eq 'Receptor' - and ($_.) Guest.Disks.Path - eq "C:\". "- and $_. Guest.Disks.CapacityGB - lt 59)}

    Im trying to figure out how to use a hash table / script block to tell if the disc is "C:\". "and the size of this drive is less than 59 GB, then resize the disk. Before I resize the disks, I need to validate the im servers get back are indeed correct - for the moment, they are not as I checked inspected these variables manually through PowerGUI (excellent by the way).

    Even if I'm just trying to Get-VM-Tag "preproduction" | Where-Object {$_.} Guest.Disks.Path - eq "C:\". "- and $_. Guest.Disks.CapacityGB - lt 59} the result does not work and I think that its because it detects all the disks and then said there is at least one drive which is equal to "C:\". "and at least a drive that is less"Go 59 -"but I need it to be the same disk not different disks for obvious reasons, otherwise the result will always be wrong.

    LucD im sure you meet a reading, I would really appreciate your help

    Im trying to start searching for a cleaner steamer so that I don't have to run several lines of code to achieve the same.

    Much appreciated,

    Mike

    Try like this

    Get-VM-Tag "preproduction" |

    Where-Object {$_.} Guest.OSFullName - like ' * Windows Server * '- and

    $_. PowerState - eq 'Receptor' - and

    (($_. Guest.Disks | where {$_.} Path - eq "C:\". »}). (CapacityGB-le 59)} |

    Select name

Maybe you are looking for

  • Satellite A300-17N - t - it have port series and how to get there?

    Hello To help my studies in microcontrollers, I need serial port, but I did not on the Panel of my laptop. I know that some laptop models have one on their motherboards, but is not on the Panel. If satellite A300-17N is one of them I enjoy any help a

  • Any tool of hard disk available?

    Ive had my hard drive replaced as it was clicking / gel etc. But ive since heard some makes have their own hard drive tools that can solve the problem. Is this the case of toshiba? any help most appreciated.

  • HP 9713c laptop: installation of an SSD in my HP 9713c.

    How to install an SSD that features a SATA port to the interface on the MB that is pinned (not SATA)? There is no way to plug into the SSD.

  • Scanning on a Laserjet M1212NF MFP

    I spent a good hour 1/2 of trying to figure out to scan on this machine without a bit of luck. The answer is probably right in front of me, but I just can't figure out how to start a scan. Help...

  • Home of the alignment Manager!

    Hi, deve In my last project, I use many managers temporary position fields on the LEFT, CENTER, RIGHT... with pading, margin etc (very difficult). Now, I want to set up my own HorizontalManager just like the former HFM, but has RESPECT for the style