Need a conditional action as consequence of selecting five separate buttons

Hiya
Say you have five buttons.  I need the learner to select all five, in any sequence, and when all five are selected a feedback box will pop up.
The curlier part is that also, if just a select four are selected alone, another pop up will appear.
Anything you have that can help would be life saving.

Yes, at 1am I was in dreamland. Posted my answer at midnight.
Why do you use y as first character (is not a bug, just wondering)? My labeling system is that I want to see the nature of everything, that is the reason why I start variables with a 'v'.
What are those buttons triggering? The action that they have to execute has to be added to the conditional action with three decisions that I described above. Probably to the first decision, which is a mimicked standard action. The sequence is very important in this conditional action:
In the first decision, the associated variable to that button will be toggled to 1 from its value 0. I didn't use the Toggle command, but Assign, in case the user can click more than once on the the button.
When the variable has its proper value, I calculate the sum of the 5 variables and store that value in v_counter. Captivate has no SUM function, that is the reason of the sequence of 4 Expression statements.
After or before those statements you'll have to insert what you want this button to do: show a caption, an image, a highlight....I don't know, you didn't tell.
Now v_counter has its correct value, only then I check first if that value is 4, which would mean that 4 different buttons have been clicked (eventually several times) in any possible sequence (hence the 5 variables, only a counter would not work in this case). If that value is 4 you pop up the text that you wanted. In this case it is not necessary to hide something (except if you want to hide something you popped up with the button itself?).
If v_counter is not equal to 4, maybe it is equal to 5 which is checked in the third decision. But in that case, the text that appeared with 4 clicked buttons is still there, so I first hide that text, then pop up the last text.
If neither the second nor the third decision results in TRUE, nothing will happen, except the statements in the first decision.

Similar Messages

  • How to call an action when the user selects a radiobutton

    Hai
    PLease help me in providing the information.
    In my Project i have two radio buttons as
    New
    Asssessment
    when the user selects new button, i want to automatically call an action in the controller(.jpf file)
    Simalarly when he selects the other radio button i need to call a separate action in the controller.
    Remember i dont have the submit button.
    I want to dynamically call an action when the user selects the radio button.
    i dont have any field inthe radio button which actually takes action as an attribute .
    please provide me the necessary

    Hi,
    You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
    Let me know if you have any further questions.

  • How do I have the learner perform a conditional action based on a button selection?

    The learner needs to select a checkbox on the screen of a performance exercise.  I've put the widget in for the checkbox and it works fine.  After the select the checkbox, they need to select OK on the screen to move them onto the next screen.  However, I don't want the learner to just select OK without selecting the checkbox in order to replicate the sequence correctly. 
    I have a slide which shows the message  which tells them as to what they did wrong when they select OK without checking the box, but when I tie that to the correct response, it will go there whether they select the checkbox or not.
    I've tried adding multiple actions to the button, which doesn't work, becuase the OK button has to be tied to the learner conditionally selecting the checkbox to move on to the correct slide.  If I use multiple actions, and the first action is to SHOW  the slide with the incorrect message, if they correctly check the box and then hit OK, it will first SHOW them the incorrect slide.
    I think what I need is a variable and then add an advanced action with a conditional statement.  However, I don't really know how to do that.  Here's the variable I created, but I don't know what value I should assign.  Here's the screen shot of the variable and conditional statement.  Could someone tell me how to do the variable and the conditional statement so that the learner when selecting OK WITHOUT selecting the checkbox first will be redirected the the error slide and if they select the checkbox FIRST, and then OK, they move on to the next screen?  Thanks,

    Thanks, you definitely got me started on the right track on variables and advanced action statements.  The screen shots helped.
    Here's how the actual fix went to make sure the OK button on the screen had a conditional statement attached to it, with
    an advanced action:
    I created parameters for the widget to link to the variable:
    I created a variable:
    Then I created an advanced action conditional statement for that variable which enabled the button to advance to the next slide when the clickbox was checked:
    Then where I finally realized my final mistake was not setting the button properties to execute advanced action:

  • CP5 Advanced Action help needed for conditions....

    Hi,
    I have created my own MultipleChoice (MC) question with 4 answer possabilities whereof 3 are right and 1 is wrong.
    As soon as a right/wrong answer is checked an advanced action is performed - checkmark in box shown and "feedback" to answer.
    In case of a right answer - the feedback of any previous answer is hidden but the check mark of correct answers stay whereas the wrong answer checkmark is hidden.
    An example of the advanced action for one of the three right answers:
    This is what the question looks like before the answer of my question needs to be implemented:
    Now to my question:
    At the end of the answers I would like the user to get a message: CONGRATULATIONS.....
    This should be displayed when all 3 right answers have been selected.
    After that CONGRAT... message they can then click the Continue button to continue the training.
    I am curious to any suggestion on how to realise this
    Thanks in advance for the reply.
    best regards
    Stephanie

    OPTION A:
    Steps to achieve congratulations message on the same slide (which is the question) 1. Actions like B_Selected,C_Selected etc. have to be conditional actions instead of standard actions which they are right now.
    2. Four variables are to be created from Project->Variables ->Add new. These can be named as a,b,c,d and set to 0(zero) which means the option is not selected 3. In the conditional action B_selected, first condition has to be something like
          If (1 equals 1)
                Show TC_Correct_B
                Show Image_230
                Hide Image_233
                Hide TC_Wrong_A
                Hide TC_Correct_C
                Hide TC_Correct_D
                Assign b = 1
    4. In second condition of same action i.e. B_selected, do the following
          If (a equals 0 && b equals 1 && c equals 1 && d equals 1)
                Show TC_Congratulations
    All the actions should have these two conditions and if there are actions like B_unselect, then 'Assign b = 0' in such actions.
    OPTION B
    On the other hand if it's fine to show the congratulations message on next slide, it will be simpler like this 1. Create the four variables a,b,c,d = 0 2. In actions like B_Selected (no need to change them to conditional action), add a statement 'Assign b = 1'
    3. In actions like B_unselected, add a statement 'Assign b = 0'
    4. On slide exit execute an advanced action which will be a conditional action as follows:
          If (a equals 0 && b equals 1 && c equals 1 && d equals 1)
                Go To Next Slide
          Else
                Jump to Slide __
    5. On next slide write congratulations message.
    Regards,
    Vandana    

  • Photoshop Help | Adding conditional actions | CC, CS6

    This question was posted in response to the following article: http://helpx.adobe.com/photoshop/using/conditional-actions-creative-cloud.html

    David Mac Do
    Conditional actions are not a big deal. In reality they are a one line script built into the fly-out menu and the feature only support a limited number of conditions. To phrase the script in english is a simple one liner
    If Document (condition pulldown list) selected is true Play true action in set(selected) else  Play false action in set (selected). Actions do not need to be select for both true and false. One selection may do what is needed.
    All three supported Photoshop supported scripting languages have support for an "if" statement.
    A javascript was posted years ago "Siva's Photoshop Conditional Action.jsx" do a serach.
    Actions can use scripts and scripts can do actions
    example
    if (activeDocument.height > activeDocument.width) doAction("Rotate", "MyActionSet");  // rotate portraits
    Crafting Actions PackageUPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Where are conditional Actions in CS 6 X ?

    According to this Adobe article Photoshop Help | Adding conditional actions | CC, CS6 my Actions Panel menu should contain an item "Insert Conditional".
    I would really like to use this feature. My CS 6 X is fully up to date but the Actions Panel menu has no such option on it. So is the article above correct or not? Or am I missing something?
    Thank you to anyone who can clarify this for me.

    David Mac Do
    Conditional actions are not a big deal. In reality they are a one line script built into the fly-out menu and the feature only support a limited number of conditions. To phrase the script in english is a simple one liner
    If Document (condition pulldown list) selected is true Play true action in set(selected) else  Play false action in set (selected). Actions do not need to be select for both true and false. One selection may do what is needed.
    All three supported Photoshop supported scripting languages have support for an "if" statement.
    A javascript was posted years ago "Siva's Photoshop Conditional Action.jsx" do a serach.
    Actions can use scripts and scripts can do actions
    example
    if (activeDocument.height > activeDocument.width) doAction("Rotate", "MyActionSet");  // rotate portraits
    Crafting Actions PackageUPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • 1 Conditional report based on 3 select lists/ 3 different select statements

    I have made 1 report based on the three select lists. The report is displayed in the center of the page. The user needs to fill them in order, the select lists are:
    Selectlist:
    1. P1_LOVPG - Null is allowed, but is only appearing at top with a label of Productgroup
    2. P1_LOVSG - Null is allowed, but is only appearing at top with a label of Subgroup
    3. P1_LOVMA - Null is allowed, but is only appearing at top with a label of Manufacturer
    LOVPG contains a distinct collect of the ProductGroups
    QUERY LOV = select distinct pg from X
    LOVSG contains a distinct collect of the SubGroups inside the selected PG.list
    QUERY LOV = select distinct sg from X where pg = :P1_LOVPG
    LOVMA contains a distinct collect of the Manufacturers inside the selected SG.lst
    QUERY LOV = select distinct ma from X where sg = :P_LOVSG
    Based on the the selected items the user would see the following:
    Table X
    PG SG MA ART
    A-----X----M---1
    A-----X----N---2
    A-----Y----M---3
    A-----X----M---4
    B-----X----M---5
    B-----Y----N---6
    B-----Z----O---7
    Seletion 1 PG = A -> selects PG A in select list result, User sees:
    Report A
    PG SG MA ART
    A-----X----M---1
    A-----X----N---2
    A-----Y----M---3
    A-----X----M---4
    Query would be: select * from X where PG = :P1_LOVPG
    Selection 2, user still sees the above, can only select from the SG select list NULL, X, Y. User needs to choose between X or Y value. He picks X, he sees:
    Report B
    PG SG MA ART
    A-----X----M---1
    A-----X----N---2
    A-----X----M---4
    Query would be: select * from X where PG = :P1_LOVPG and SG = :P_LOVSG
    Selection 3, user still sees selection 2 on his screen, can only select from the MA list bewteen NULL, M or N, user needs to choose between M or N. He picks M, he sees:
    Report C
    PG SG MA ART
    A-----X----M---1
    A-----X----M---4
    Query would be: select * from X where PG = :P1_LOVPG and SG = :P_LOVSG
    As you can see the query changes as the user goes deeper into the structure. It is a simple if then else system where the quey changes. How do I set this up in htmldb?
    (I've read something about Oracle's SQL and it's decode function, but can they be used with changing select statements?)

    are you sure your data meets the JOIN conditions?
    You can make a quick check.. only example...
    select single * from KONP into ls_konp
    where knumh = P_knumh.
    if sy-subrc eq 0.
    select * from from A905 into table lt_a905 where
         kappl in so_kappl
         and kschl in so_kschl
         and VKORG in so_vkorg
         and vtweg in so_vtweg
         and kondm in so_kondm
         and wkreg in so_wkreg
         and knumh = ls_konp-knumh.
    if sy-subrc eq 0.
    select * from A919 into table lt_a919
    for all entries in lt_a905
    where kappl = lt_a905-kappl
    and kschl = lt_905-kschl
    and knumh = lt_905-knumh.
    endif.
    endif.

  • Multiple Conditions\Actions in a Workflow

    I am in the process of creating an expense approval form with a workflow that has two Approval stages. In the first stage, however, the approver would be dynamic based on a selection in the form. The second stage approval would go to the same
    person\group. What's the best\correct way to do multiple\conditions\actions in a single step? As an example of the workflow:
    If Field1 equals Value1 Assign a task to Person1. If Associated Task is Approved create a new Task and Assign it to Person 10
    there would be about 12 different iterations of the first step, Value2 Assign to Person 2 and so on.

    Hi pjs, it depends on who the person is/how they're related to the selection on the form. If it's the user's manager, you can get that information by using the link below. If there's no real correlation to the selection made, then you'd have to make a list
    with two columns- "selection" and "person to email." Then check that list against the selection and get the corresponding email for the particular approver.
    http://www.sharepointanalysthq.com/2011/04/user-profile-data-in-sharepoint-designer-workflows/
    cameron rautmann

  • Conditional Actions Script for PS CS2

    This script from Sivaratnam Gunaratnam will perform actions on Photoshop files and can change depending on certain definable conditions encountered in each file.
    From his Blog entry:
    "This is a tool I scripted for myself that I would like to share with all fellow Photoshopers. It allows you to execute your Actions based on Conditions. No programming needed. Just click and define your conditions.. Some examples of conditions are as follows:
    If the image height is greater than its width, do Action X, or else do else Y
    If the image format is JPG / PSD / BMP do action...
    If the image file size is bigger than 300KB, do action....
    if the image IS/IS NOT of RGB, CMYK... etc
    if image author is Siva, do action...
    if image exif contains Nikon D70s, do action ....
    if image name contains "paris", do action...
    etc
    etc
    Please note thatas of this writinghe has only tested it on Windows and PSCS2. However, someone posted a comment to his blog entry stating that it "Seems to work perfectly on a Mac too."
    caveat downloador :)
    Visit Siva's blog to read more and get the script at the following link:
    http://actionlogic.blogspot.com/2006/03/sivas-photoshop-conditional-action.html

    This script from Sivaratnam Gunaratnam will perform actions on Photoshop files and can change depending on certain definable conditions encountered in each file.
    From his Blog entry:
    "This is a tool I scripted for myself that I would like to share with all fellow Photoshopers. It allows you to execute your Actions based on Conditions. No programming needed. Just click and define your conditions.. Some examples of conditions are as follows:
    If the image height is greater than its width, do Action X, or else do else Y
    If the image format is JPG / PSD / BMP do action...
    If the image file size is bigger than 300KB, do action....
    if the image IS/IS NOT of RGB, CMYK... etc
    if image author is Siva, do action...
    if image exif contains Nikon D70s, do action ....
    if image name contains "paris", do action...
    etc
    etc
    Please note thatas of this writinghe has only tested it on Windows and PSCS2. However, someone posted a comment to his blog entry stating that it "Seems to work perfectly on a Mac too."
    caveat downloador :)
    Visit Siva's blog to read more and get the script at the following link:
    http://actionlogic.blogspot.com/2006/03/sivas-photoshop-conditional-action.html

  • Advanced conditional action issue

    I am using Captivate 7. I am experimenting with Advanced conditional actions.
    I am simulating a numerical keypad (0-9) with each number assigned to a click box.
    working with 4 digits.
    I need to impose limits for each of the 4 digits.
    Example:
    Digit 1 can only be a 0 or a 1
    Digit 2 can only be 0-5
    etc.
    I trying to prevent going to the next action when a wrong number is clicked.
    Looking for examples on how to properly implement this.

    Hello and welcome to the forum,
    Some years ago I created such a use case, would certainly change several things now with Captivate 7. I would recommend to make ieach key a shape button, so that it looks like a pressed key if the user clicks it. And I would also use shared actions without any doubt. But no time to work this out, sorry.
    Certainly not totally your use case, but perhaps have a look:
    http://blog.lilybiri.com/create-a-keypad-simulation-using-advanced-act
    Lilybiri

  • Inequality condition prevents the optimizer from selecting indices on tabl

    Dear all,
    I have the below query which takes 4 minutes to give the output:
    original query
    select t_sub.contrno "contNo" from tsk_subno t_sub ,arm_subs_balance bal where order_no = '5360' and
    order_type='NET' and t_sub.subno = bal.subno (+);sql tuning advisor is giving the below advise.. Restructure SQL
    Predicate NVL("IVM_BILLING"."BILLED",'N')<>'Y' used at line ID 14 of the execution plan is an inequality condition on indexed column "SYS_NC00071$". This inequality condition prevents the optimizer from selecting indices on table "TABS"."IVM_BILLING".How I can restructure the sql..
    FYI. arm_subs_balance is a view which takes data from IVM_BILLING.
    view script :
    CREATE OR REPLACE VIEW ARM_SUBS_BALANCE
    (CONTRNO, SUBNO, PAST_DUE, DEPOSIT, UNBILLED,
    TOTAL)
    AS
    SELECT contrno,subno,sum(past_due) past_due,sum(deposit) deposit,
           sum(unbilled) unbilled,
           sum(past_due+deposit+unbilled) total
    from
    select subno,0 past_due,0 deposit,0 unbilled,contrno
      from CRM_USER_INFO
    union all
    select nvl(H.subno,'0000000') subno, sum(nvl(R.ar_am_loc,0)) past_due,
           0 deposit,0 unbilled, R.contrno
      from     IVM_INVOICE_DETAIL R, IVM_INVOICE_RECORD H
      WHERE R.AR_REF=H.AR_REF
       and R.contrno = H.contrno
    group by nvl(H.subno,'0000000'),R.contrno
    having sum(nvl(R.ar_am_loc,0)) != 0
    union all
    select subno,0 past_due,nvl(add_deposit,0) depoist,
           0 unbilled, contrno
      from CRM_USER_EQUIPMENTS
    union all
    select subno,0 past_due,0 deposit, nvl(billamount,0) unbilled,
           contrno
      from IVM_BILLING
    where nvl(billed,'N') != 'Y'
    group by subno,contrnoThanks
    Kai
    Edited by: KaiS on Sep 30, 2009 10:10 AM

    Justin,
    I always thought that nvl(billed,'N') != 'Y' meant that the query should include all rows with a null-value or a value other than Y. :p
    But I agree that the index would moste likely not be that helpfull, but we need more information for that: [When your query takes too long|http://forums.oracle.com/forums/thread.jspa?messageID=1812597] and [HOW TO: Post a SQL statement tuning request |http://forums.oracle.com/forums/thread.jspa?threadID=863295]
    I expect that the conditions on tsk_subno will result in a small number of rows and that there's an index on tsk_subno.order_no which will be used to retrieve those rows.
    In that case view arm_subs_balance will be accessed on subno. This means that if the tables crm_user_info, crm_user_equipments and ivm_billing have indexes on subno, those indexes will be used, but an index on ivm_invoice_record.subno will not be used because of select nvl(H.subno,'0000000') subnoWithout more information I would guess that this part of the union takes longest and should be tuned by rethinking/redesigning the view or a function based index: create index i on IVM_INVOICE_RECORD ( nvl(H.subno,'0000000') );

  • ASK: Need another condition in Free Goods

    Dear Expert ,
    I was confused with SAP free goods, in our company is currently require two distinct methods of free goods
    currently free goods which has been running is only one,  that is standard condition NA00
    Is it possible if I created a condition similar to NA00 again (Copy from) ? let say NA01
    So user can maintain free goods by condition NA00 or NA01
    The original item category that assign with NA00 is ZBNS, so I created ZBN1 also for NA01
    Free goods Pricing for NA00 is NA000, and I created new pricing NA0001 also for NA01
    I am still confused on the process Activate Free Goods Determination, because it has not been found distinguishing between NA00 and NA01
    And same problem also when creating Determine Item Category For Free Goods Item.
    I really appreciate for your help and share
    Thanks & regards,
    Danang

    Hi Pradeep ,
    Thanks for your response ,
    ZBNS and ZBN1 is Item category for free goods, ZBNS is original one , and ZBN1 is just copied from ZBNS .
    This is because I want to make two conditions for Free Goods, NA00 (std)  and NA01 (new).
    I want user can maintain on one of these conditions (NA00 or NA01)
    If the user maintain at NA00, then when SO made, Free Goods item  will appear with the item category ZBNS , and
    If the user maintain at NA01, then Free Goods item  will appear with the item category ZBN1 in SO.
    Is it possible to do that ?
    Thanks & regards,
    Danang
    Hi Danangpn
    I have a question What is ZBNS & ZBN1 it is free goods item category?NA00 is a free good std condition type you cannot assign the condition type in item category determination.
    Std Item category determination for Free goods
    Sales DocumentItem categoryUsageHigher level item categoryDefault item category
    ORNORMFREETANTANN
    --Check Access sequence what tables you have assigned.
    --Check maintain condition type which access sequence have you assigned for NA00 & NA01
    NA00 is NA000, and I created new pricing NA0001
    You have maintained 2 pricing procedures for free goods.check what condition type have assigned in both the procedure
    --you can differentiate the free goods with key combination in VBN1
    --enter the condition type NA00 or NA01 & select the key combination & maintain the record.
    --Activate Free goods Determination
    Regards
    Pradeep

  • Dynamic Select List / Radio Buttons triggering conditional display of field

    Hi HTMLDB Team,
    I wanted to mimic this very nice and useful HTMLDB 'select list feature' at the HTMLDB "Create Application ... from Application Export file " ... option .
    ie when you hit the form that asks you to "install the application", i,e
    Builder - Application >Export Import>Export Repository>Install Application
    you have the the following radio Options :
    Install As Application
    X Reuse Application ID 401 From Export File
    X Auto Assign New Application ID
    X Change Application ID
    New Application
    The "New Application ID" field appears only when I select "Change Application ID" radio option. That great and that's exactly what I want.
    How do you do that ?
    I am currently using a select list instead of radio list. It's the same thing ... I
    I tried " many options of the "select list with redirect .... with submit .... but I was not successfful. All I am trying to achieve is to offer a list of departments ... but when the user select "other", I want to show a text field for the user to type in the "other Department" ... without losing what I had already entered in the form previously and without actually Submitting the form . I still have other fields to enter after the select list .
    Is that possible with pure HTMLDB ?
    Or do I have to craft up some Javascript .
    I'd prefer pure HTMLDB .. I do not want to use javascript, to avoin a maintenance nightmare once I submit the code to other developers ...
    Can you pls help ?
    Thanks a lot.

    Hello,
    Take a look at these built in javascript function
    they should give you what you want.
    http://htmldb.oracle.com/pls/otn/f?p=11933:39
    CarlCarl,
    if I understand it right, these functions are already built in Apex 2.2.1.
    I need to show an item with label when user selects certain radio button. This sounds like the opposite to f_Hide_On_Value_Item_Row function.
    Can this task be done with apex built-in javascript functionality at this moment?
    Thanks

  • Conditional actions in Photoshop can't test for Lab color mode.

    I’m posting here because the feature request/bug report form isn’t currently working for Photoshop.
    I wanted to create an action to determine if the color mode of an image is Lab, and if so, convert it to RGB. But there’s no conditional action test for Lab color mode.  The list of conditions that can be tested includes RGB, grayscale, and a couple of other color modes, but not Lab,  Does anyone know of a workaround?  Can I get it done with scripting?
    It would be a big help if the next update of Photoshop CC could include a conditional action test for Lab color mode.

    This for example would convert an active Lab image to sRGB:
    if (app.documents.length > 0) {
    if (app.activeDocument.mode == DocumentMode.LAB) {
    app.activeDocument.convertProfile ("sRGB IEC61966-2.1", Intent.RELATIVECOLORIMETRIC, true, true);

  • Conditional action script not executing

    I have four buttons, Q1, Q2,Q3,Q4.  the script for each works fine:  the variable (ex. Q1) is set equal to 1 and the other functions perform as scripted.  When all four buttons are clicked on and equal to 1, another script (Slide_End) is supposed to work--hiding a box on the screen and showing the Next button.  This Slide_End script is not working.  I have the slide properties On Enter assigned to Advanced Actions>Slide_End.  The Slide_End script has been labelled as All Clicked within the script itself.  I just can't understand what I am missing.  I have the exact same settings on another slide and it works fine.

    Never had a formal training neither, but have been blogging about advanced actions and solving use cases for many users. And wrote some articles long time ago, here you can find the link with those:
    https://workspaces.acrobat.com/?d=tGgSjfVqRtEgI6fORG-zbw
    Normally for a standard action, you choose 'Standard action', not a 'Conditional action'. Have a look at this old presentation, maybe it will clarify something:
    http://blog.lilybiri.com/presentation-devlearn-2011
    Double click on the second 'Untitled' and you have a second possibility to check something. The first condition will always be fulfilled  (IF 1 is equal to 1) so that is really a standard action. The second Untitled will be your real condition where you check all the variables and have two different sets of statement/commands depending on the answer Yes or No for that condition.
    Lilybiri

Maybe you are looking for