{
	"id": "lujqh1w6",
	"label": { "type": "VTL|MD", "value": "Test boucle overview" },
	"modele": "BOUCLEOVERVIEW",
	"maxPage": "7",
	"cleaning": {
		"T_NHAB": {
			"PETITEQUES": [
				{
					"shapeFrom": "T_PRENOM",
					"expression": "not(PRENOM = PRENOMREF)",
					"isAggregatorUsed": true
				}
			],
			"SUPERQUEST": [
				{
					"shapeFrom": "T_PRENOM",
					"expression": "not(PRENOM = PRENOMREF)",
					"isAggregatorUsed": true
				}
			]
		},
		"T_PRENOM": {
			"PETITEQUES": [
				{
					"shapeFrom": "T_PRENOM",
					"expression": "not(PRENOM = PRENOMREF)",
					"isAggregatorUsed": true
				}
			],
			"SUPERQUEST": [
				{
					"shapeFrom": "T_PRENOM",
					"expression": "not(PRENOM = PRENOMREF)",
					"isAggregatorUsed": true
				}
			]
		}
	},
	"resizing": {
		"T_NHAB": { "size": "T_NBHAB", "variables": ["T_PRENOM"] },
		"T_PRENOM": {
			"size": "count(T_PRENOM)",
			"variables": ["SUPERQUEST", "PETITEQUES"]
		}
	},
	"variables": [
		{
			"name": "T_NBHAB",
			"dimension": 0,
			"expression": { "type": "VTL", "value": "nvl(T_NHAB,1)" },
			"variableType": "CALCULATED",
			"bindingDependencies": ["T_NHAB"]
		},
		{
			"name": "PRENOMREFB",
			"dimension": 0,
			"expression": { "type": "VTL", "value": "first_value(T_PRENOM over())" },
			"variableType": "CALCULATED",
			"bindingDependencies": ["T_PRENOM"]
		},
		{
			"name": "PRENOMREF",
			"dimension": 0,
			"expression": {
				"type": "VTL",
				"value": "if (T_NBHAB = 1) then nvl(PRENOMREFB, \"PRENOM\") else nvl(PRENOMREFB, \"PRENOM1\")"
			},
			"variableType": "CALCULATED",
			"bindingDependencies": ["T_NBHAB", "PRENOMREFB", "T_NHAB", "T_PRENOM"]
		},
		{
			"name": "PRENOM",
			"dimension": 1,
			"shapeFrom": ["T_PRENOM"],
			"expression": { "type": "VTL", "value": "nvl(PRENOMB, \"PRENOM\")" },
			"variableType": "CALCULATED",
			"iterationReference": "luk13nnr",
			"bindingDependencies": ["PRENOMB", "T_PRENOM"]
		},
		{
			"name": "PRENOMB",
			"dimension": 1,
			"shapeFrom": ["T_PRENOM"],
			"expression": { "type": "VTL", "value": "T_PRENOM" },
			"variableType": "CALCULATED",
			"iterationReference": "luk13nnr",
			"bindingDependencies": ["T_PRENOM"]
		},
		{
			"name": "T_NHAB",
			"values": { "COLLECTED": null },
			"dimension": 0,
			"variableType": "COLLECTED"
		},
		{
			"name": "T_PRENOM",
			"values": { "COLLECTED": [] },
			"dimension": 1,
			"variableType": "COLLECTED",
			"iterationReference": "luk13nnr"
		},
		{
			"name": "SUPERQUEST",
			"values": { "COLLECTED": [] },
			"dimension": 1,
			"variableType": "COLLECTED",
			"iterationReference": "luk13nnr"
		},
		{
			"name": "PETITEQUES",
			"values": { "COLLECTED": [] },
			"dimension": 1,
			"variableType": "COLLECTED",
			"iterationReference": "luk13nnr"
		},
		{
			"name": "FILTER_RESULT_T_NHAB",
			"dimension": 0,
			"expression": { "type": "VTL", "value": "true" },
			"variableType": "CALCULATED",
			"isIgnoredByLunatic": true
		},
		{
			"name": "FILTER_RESULT_T_PRENOM",
			"dimension": 1,
			"shapeFrom": ["T_PRENOM"],
			"expression": { "type": "VTL", "value": "true" },
			"variableType": "CALCULATED",
			"isIgnoredByLunatic": true,
			"iterationReference": "luk13nnr"
		},
		{
			"name": "FILTER_RESULT_SUPERQUEST",
			"dimension": 1,
			"shapeFrom": ["T_PRENOM"],
			"expression": { "type": "VTL", "value": "(not(PRENOM = PRENOMREF))" },
			"variableType": "CALCULATED",
			"isIgnoredByLunatic": true,
			"iterationReference": "luk13nnr",
			"bindingDependencies": ["PRENOMREF", "PRENOM"]
		},
		{
			"name": "FILTER_RESULT_PETITEQUES",
			"dimension": 1,
			"shapeFrom": ["T_PRENOM"],
			"expression": { "type": "VTL", "value": "(not(PRENOM = PRENOMREF))" },
			"variableType": "CALCULATED",
			"isIgnoredByLunatic": true,
			"iterationReference": "luk13nnr",
			"bindingDependencies": ["PRENOMREF", "PRENOM"]
		}
	],
	"components": [
		{
			"id": "lujqrqmp",
			"page": "1",
			"label": {
				"type": "VTL",
				"value": "\"I - \" || \"Habitants du logement\""
			},
			"componentType": "Sequence",
			"conditionFilter": { "type": "VTL", "value": "true" }
		},
		{
			"id": "question-lujqwl1t",
			"page": "2",
			"label": {
				"type": "VTL|MD",
				"value": "\"Combien d'habitants dans votre logement ?\""
			},
			"components": [
				{
					"id": "lujqwl1t",
					"max": 10.0,
					"min": 0.0,
					"page": "2",
					"controls": [
						{
							"id": "lujqwl1t-format-borne-inf-sup",
							"type": "SIMPLE",
							"control": {
								"type": "VTL",
								"value": "not(not(isnull(T_NHAB)) and (0>T_NHAB or 10<T_NHAB))"
							},
							"criticality": "ERROR",
							"errorMessage": {
								"type": "VTL|MD",
								"value": "\" La valeur doit être comprise entre 0 et 10\""
							},
							"typeOfControl": "FORMAT"
						},
						{
							"id": "lujqwl1t-format-decimal",
							"type": "SIMPLE",
							"control": {
								"type": "VTL",
								"value": "not(not(isnull(T_NHAB))  and round(T_NHAB,0)<>T_NHAB)"
							},
							"criticality": "ERROR",
							"errorMessage": {
								"type": "VTL|MD",
								"value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule\""
							},
							"typeOfControl": "FORMAT"
						}
					],
					"decimals": 0,
					"response": { "name": "T_NHAB" },
					"description": {
						"type": "TXT",
						"value": "Format attendu : un nombre entre 0 et 10"
					},
					"isMandatory": false,
					"componentType": "InputNumber"
				}
			],
			"componentType": "Question",
			"conditionFilter": { "type": "VTL", "value": "true" }
		},
		{
			"id": "luk13nnr",
			"page": "3",
			"depth": 1,
			"lines": {
				"max": { "type": "VTL", "value": "T_NBHAB" },
				"min": { "type": "VTL", "value": "T_NBHAB" }
			},
			"components": [
				{
					"id": "luk18oun",
					"page": "3",
					"label": {
						"type": "VTL|MD",
						"value": "\"Composition du logement\"",
						"shapeFrom": "T_PRENOM"
					},
					"description": {
						"type": "VTL|MD",
						"value": "\"Super déclaration\"",
						"shapeFrom": "T_PRENOM"
					},
					"componentType": "Subsequence",
					"conditionFilter": {
						"type": "VTL",
						"value": "true",
						"shapeFrom": "T_PRENOM"
					}
				},
				{
					"id": "question-lujr5vll",
					"page": "3",
					"label": {
						"type": "VTL|MD",
						"value": "\" \" || if (T_NBHAB = 1) then \"Votre prénom : \" else (if ( not(isnull(T_PRENOM)) and T_PRENOM=PRENOMREF ) then \"Votre prénom : \" else ( if (isnull(PRENOMREFB) and isnull(T_PRENOM)) then \"Prénom (commencez par votre prénom) : \" else \"Prénom : \")) "
					},
					"components": [
						{
							"id": "lujr5vll",
							"page": "3",
							"response": { "name": "T_PRENOM" },
							"maxLength": 40,
							"isMandatory": false,
							"componentType": "Input"
						}
					],
					"componentType": "Question",
					"conditionFilter": { "type": "VTL", "value": "true" }
				}
			],
			"componentType": "Loop",
			"paginatedLoop": false,
			"conditionFilter": { "type": "VTL", "value": "true" },
			"loopDependencies": ["T_NHAB", "T_NBHAB"]
		},
		{
			"id": "luk1sm54",
			"page": "4",
			"depth": 1,
			"maxPage": "2",
			"components": [
				{
					"id": "luk1ojt5",
					"page": "4.1",
					"label": {
						"type": "VTL",
						"value": "\"II - \" || \"Boucle sur séquence pour  \" || PRENOM || \" (qui filtre la première itération)\" ",
						"shapeFrom": "T_PRENOM"
					},
					"componentType": "Sequence",
					"conditionFilter": {
						"type": "VTL",
						"value": "(not(PRENOM = PRENOMREF))",
						"shapeFrom": "T_PRENOM"
					}
				},
				{
					"id": "question-luk17g1l",
					"page": "4.2",
					"label": {
						"type": "VTL|MD",
						"value": "\"Super question pour \" || PRENOM "
					},
					"components": [
						{
							"id": "luk17g1l",
							"page": "4.2",
							"response": { "name": "SUPERQUEST" },
							"maxLength": 249,
							"isMandatory": false,
							"componentType": "Input"
						}
					],
					"componentType": "Question",
					"conditionFilter": {
						"type": "VTL",
						"value": "(not(PRENOM = PRENOMREF))"
					}
				}
			],
			"iterations": { "type": "VTL", "value": "count(T_PRENOM)" },
			"componentType": "Loop",
			"paginatedLoop": true,
			"conditionFilter": { "type": "VTL", "value": "true" },
			"loopDependencies": ["T_PRENOM"]
		},
		{
			"id": "mkpijg47",
			"page": "5",
			"label": {
				"type": "VTL",
				"value": "\"III - \" || \"Séquence avec boucle sur sous-séquence\"",
				"shapeFrom": "T_PRENOM"
			},
			"componentType": "Sequence",
			"conditionFilter": {
				"type": "VTL",
				"value": "true",
				"shapeFrom": "T_PRENOM"
			}
		},
		{
			"id": "mkpitw36",
			"page": "6",
			"depth": 1,
			"maxPage": "1",
			"components": [
				{
					"id": "mkpirz76",
					"label": {
						"type": "VTL|MD",
						"value": "\"Boucle sur sous-séquence (qui filtre la première itération)\"",
						"shapeFrom": "T_PRENOM"
					},
					"goToPage": "6.1",
					"componentType": "Subsequence",
					"conditionFilter": {
						"type": "VTL",
						"value": "(not(PRENOM = PRENOMREF))",
						"shapeFrom": "T_PRENOM"
					}
				},
				{
					"id": "question-mkpihagg",
					"page": "6.1",
					"label": {
						"type": "VTL|MD",
						"value": "\"Petite question pour \" || PRENOM "
					},
					"components": [
						{
							"id": "mkpihagg",
							"page": "6.1",
							"response": { "name": "PETITEQUES" },
							"maxLength": 249,
							"isMandatory": false,
							"componentType": "Input"
						}
					],
					"componentType": "Question",
					"conditionFilter": {
						"type": "VTL",
						"value": "(not(PRENOM = PRENOMREF))"
					}
				}
			],
			"iterations": { "type": "VTL", "value": "count(T_PRENOM)" },
			"componentType": "Loop",
			"paginatedLoop": true,
			"conditionFilter": { "type": "VTL", "value": "true" },
			"loopDependencies": ["T_PRENOM"]
		},
		{
			"id": "lulbelgr",
			"page": "7",
			"label": { "type": "VTL", "value": "\"IV - \" || \"Séquence vide\"" },
			"componentType": "Sequence",
			"conditionFilter": { "type": "VTL", "value": "true" }
		}
	],
	"pagination": "question",
	"componentType": "Questionnaire",
	"enoCoreVersion": "3.60.0",
	"generatingDate": "22-01-2026 14:35:44",
	"lunaticModelVersion": "5.12.0"
}
